using shell variables with ctrl+y

Offer Kaye offer.kaye at gmail.com
Thu Oct 1 11:26:53 CEST 2009


On Wed, Sep 30, 2009 at 12:51 PM, Daliyot, Maoz <maoz.daliyot at intel.com> 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


More information about the Discuss mailing list