Re: Shorter filenames in open dialog?
"Aaron W. Hsu" <[email protected]> Mon, 21 Mar 2011 18:05:54 -0400
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Organization | Indiana University |
| Message-ID | <op.vsprn4cn0p3ku8@localhost> |
On Mon, 21 Mar 2011 16:12:38 -0400, Isaac Raway <[email protected]> wrote: > Well I haven't had any luck getting this to behave how I would like, so > an illustration may be in order: > > http://blueapples.org/files/nedit_motif_open_dialog.gif > > This image shows what I see when I select the File > Open command. I can see your frustrations now. :-) This is not how my Motif works. I am using OpenMotif 2.3.3 right now, and I think that you can configure this. My dialog looks like this: http://www.sacrideo.us/~arcfide/tmp/nedit_motif_open_dialog.png And that is with the following resource set: nedit.stdOpenDialog: true However, setting that will not fix your problem. > To be honest I am not sure if this is the default Motif dialog or if it > is "the special nedit open dialog". This is the NEdit dialog, not the standard one. Notice that it does not have the file field in the bottom. This is done to encourage a more efficient workflow of typing the file name directly into the file box, but I like to have the field there. > I had thought it was the default Motif one but perhaps I am wrong - I > don't use Motif very much and haven't for a long time. How would I go > about switching to the default dialog if this is not it? Reading further along in the Motif Reference manuals, I believe that what you are showing is the "traditional" 1.2 Motif dialog, which has to do with the XmNPathMode resource. In this case, if you open the file open dialog in NEdit and then use editres, you can see that there is a "FileSelect" widget; this is an XmFileSelectionBox, which has the pathMode resource on it. I will bet that yours is set to 'path_mode_full' which is the old style 1.2 dialog, which removes an extra filter field and has the full paths in the dialog box. To change this, I used the following in my resource file: nedit*FileSelect.pathMode: path_mode_relative Which is what my NEdit is set to by default. If I change it to the other I get the behavior that you experience. So, to put it simply, I have the following: nedit*FileSelect.pathMode: path_mode_relative nedit.StdOpenDialog: true and you have nedit*FileSelect.pathMode: path_mode_full nedit.StdOpenDialog: false More or less. What version of Motif are you using? Maybe lesstif does these things differently than OpenMotif? Aaron W. Hsu -- Programming is just another word for the lost art of thinking. -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss