This is the mail archive of the cygwin-talk mailing list for the cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chere suggestion

As DaveK alluded to, this has gotten way off-topic for the main Cygwin
list.  Redirecting to the cygwin talk list, where anything goes (beware of
the hippos).

On Wed, 15 Feb 2006, Cary Jamison wrote:

> Igor Peshansky wrote:
> >FWIW, I use the "Send To" menu with the following shortcut for vi:
> >
> >C:\cygwin\bin\run.exe /bin/rxvt.exe -display :0 -T vim -vb -sr -sl 10000 -bg black -cr white -fg LightSteelBlue1 -j -fn "-b&h-lucidatypewriter-medium-r-normal-sans-0-0-14-14-m-0-iso8859-2" -e /usr/bin/vim
> >
> >(I used to have more args there, but run now has a 20-argument
> >limit -- sigh!).
> I was able to add my own 'edit with xemacs' action, but couldn't get the
> cygpath right without calling a separate script.  Plus, I had to add
> this action to every file type I wanted - a big pain!  It doesn't look
> like yours is doing anything with the paths - does it just work?

Yes, it does.  When the shortcut is in the "Send To" menu, using it is
just like dragging the file onto that shortcut -- i.e., the full windows
path is passed to the program.  Plus, you don't need to associate it with
any files -- it's available for any file with just a right-click.

> I'll have to play with that some.  How did you get it under the 'send
> to' menu?

Right-click on "Start" and choose "Explore".  "Send To" is a folder that
should be right above "Start Menu".  Just drag your shortcut there.

> P.S. Here's my first attempt:
> new action: Edit with xemacs
> Application: C:\cygwin\bin\run.exe C:\cygwin\bin\bash.exe --login -c
> 'wxemacs "%1" '
> which calls this simple script (wxemacs):
>   arg=$(cygpath -am "$*")
>   exec xemacs "$arg"
> I copied some of this from my xemacs shortcut, perhaps it's not all
> needed, but it's nice to have xemacs running with the full environment
> set.

Try simply putting the following

C:\cygwin\bin\run.exe C:\cygwin\bin\bash.exe --login -c xemacs

as a shortcut in the "Send To" menu.  I don't use xemacs, though, so the
above is untested.
      |\      _,,,---,,_ |
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]