[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: starting an app in the current directory
From:       Jerome Yuzyk <jerome () supernet ! ab ! ca>
Date:       2001-12-15 20:21:51
[Download RAW message or body]

On Friday 14 December 2001 04:13 am, David Faure wrote:
> On Friday 14 December 2001 01:15, Jerome Yuzyk wrote:
> > I have associated VIM (gvim?) with *.txt. I like to use KFM to open
> > files with middle-click. How do I tell VIM to open the file and stay
> > in the directory the file came from? VIM always opens the file from
> > $HOME.
>
> See my recent reply about the inexisting notion of "current dir" in a
> graphical environment (I guess it was on kde-devel).

I would argue there is a "current dir": the place where the file came 
from, the folder I was looking at when I opened the file.

> Solution is simple, change the Exec line to
> sh -c "cd %d ; vim %f"

I tried this in the Menu Editor with gvim but %d and %f don't get through.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic