Re: using shell variables with ctrl+y
Offer Kaye <[email protected]>
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 30, 2009 at 12:51 PM, Daliyot, Maoz <[email protected]> wrote: > Hi, > I wonder if there is a way to load nedit with some shell variables definitions, such that "ctrl+y" would open a pointer which includes shell variable in its path. > > For example, let's say I have $PROJ_TOOL variable defined in shell, and I want to open a file in nedit with ctrl+y, that is pointed for example like: > > $PROJ_TOOL/dir/file.txt > > Thanks! > > Maoz > You can create a simple macro with the contents: open(shell_command( "echo -n " get_selection() , "" )) Bind the macro to the keybinding of your choice and you're all set. For simple cases this should work well. Regards, -- Offer Kaye -- NEdit Discuss mailing list - [email protected] http://www.nedit.org/mailman/listinfo/discuss