public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
* Re: chere suggestion
       [not found]       ` <dt0h3h$j1f$1@sea.gmane.org>
@ 2006-02-16  0:49         ` Igor Peshansky
  2006-02-16  1:01           ` Cary Jamison
  0 siblings, 1 reply; 3+ messages in thread
From: Igor Peshansky @ 2006-02-16  0:49 UTC (permalink / raw)
  To: Cary Jamison; +Cc: The Cygwin-Talk Maiming List

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.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
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"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: chere suggestion
  2006-02-16  0:49         ` chere suggestion Igor Peshansky
@ 2006-02-16  1:01           ` Cary Jamison
  2006-02-16  1:23             ` Igor Peshansky
  0 siblings, 1 reply; 3+ messages in thread
From: Cary Jamison @ 2006-02-16  1:01 UTC (permalink / raw)
  To: cygwin-talk

Igor Peshansky wrote:
> 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).

That's fine...I thought my original suggestion was on topic, but I agree 
this is mostly basic windows howto stuff now.

>>  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.

Ahh, it's that easy!  I'm just a misplaced Unix hacker I guess...

> 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.
> Igor

Perhaps I was getting hung up with the cygpath -a stuff.  I assume your way 
just opens it up in the specified directory so there isn't any path 
problems?  I'll play with it some, as long as the hippos don't get me first!


Cary



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: chere suggestion
  2006-02-16  1:01           ` Cary Jamison
@ 2006-02-16  1:23             ` Igor Peshansky
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Peshansky @ 2006-02-16  1:23 UTC (permalink / raw)
  To: Cary Jamison; +Cc: The Cygwin-Talk Maiming List

Don't know if you're subscribed to cygwin-talk, so Cc'ing you for now.

On Wed, 15 Feb 2006, Cary Jamison wrote:

> Igor Peshansky wrote:
> > 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).
>
> That's fine...I thought my original suggestion was on topic, but I agree
> this is mostly basic windows howto stuff now.
>
> >>  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.
>
> Ahh, it's that easy!  I'm just a misplaced Unix hacker I guess...

Heh, you can be both if you just take the time... :-)

> > 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.
> > Igor
>
> Perhaps I was getting hung up with the cygpath -a stuff.  I assume your
> way just opens it up in the specified directory so there isn't any path
> problems?

Nope.  My way actually supplies the full Win32 pathname to the program.
Vim simply understands it in its raw form (that's why I said xemacs may
not work).

> I'll play with it some, as long as the hippos don't get me first!

The hippos around here are a friendly bunch -- always ready to drop in...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
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"

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-16  1:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <005b01c6325a$aa389c40$a501a8c0@CAM.ARTIMI.COM>
     [not found] ` <43F386DB.6050604@gmail.com>
     [not found]   ` <dt090p$qog$1@sea.gmane.org>
     [not found]     ` <Pine.GSO.4.63.0602151854000.21867@access1.cims.nyu.edu>
     [not found]       ` <dt0h3h$j1f$1@sea.gmane.org>
2006-02-16  0:49         ` chere suggestion Igor Peshansky
2006-02-16  1:01           ` Cary Jamison
2006-02-16  1:23             ` Igor Peshansky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).