# Start the NEdit editor: # Run the script .ned in the current directory if it exists; nc otherwise ACTION ned { TYPE COMMAND # LABEL Run NEdit (server mode) WINDOW_TYPE NO_STDIO ICON nedit # ARG_COUNT >=0 LABEL Run NEdit in server mode EXEC_STRING sh -c \ 'if [ -f .ned ] && [ -x .ned ]; \ then exec .ned %Args% ; \ elif [ -f $HOME/.ned ] && [ -x $HOME/.ned ]; \ then exec $HOME/.ned %Args% ; \ else nc -noask %Args% ; fi' DESCRIPTION Runs an unnamed NEdit server (or execute .ned in pwd) } DATA_ATTRIBUTES NEditRunFile { ICON nedit ACTIONS NEdit,Run DESCRIPTION This file is run automatically as part of the ned \ action: it is intended to start a new NEdit server \ or connect to an existing one. } DATA_CRITERIA NEditRunFile1 { DATA_ATTRIBUTES_NAME NEditRunFile PATH_PATTERN */.ned MODE !d&x } ACTION Run { LABEL Run NEdit (server mode) ARG_TYPE NEditRunFile TYPE MAP MAP_ACTION ned }