[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-16 8:46:59
[Download RAW message or body]
On Sunday 16 December 2001 12:44 am, Jerome Yuzyk wrote:
> On Saturday 15 December 2001 05:03 pm, David Faure wrote:
> > On Saturday 15 December 2001 21:21, Jerome Yuzyk wrote:
> > > 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.
> >
> > > > 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.
> >
> > Err, that's a bit vague. Did the .desktop file get modified ?
> > (see ~/.kde/share/applnk/*/gvim.desktop or vim.desktop)
> > What happens exactly ?
>
I used 'gvim' instead of 'vim'. gvim.desktop is modified, but from the K
menu or KFM gvim opens the file "~/%f". I have tried foo ; bar
patterns in the menu editor before and they haven't worked either. I also
tried cd %d ; gvim %f but I get a popup from KFM saying that 'cd'
cannot be found. Using bash instead of sh gives the same results. Leaving
out the quotes puts gvim in the [panel where minimized apps go] for a
while and then it goes away. RH7.2, KDE2.2.2, QT 2.3.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic