
Edit with gvim - with GVIM serverlist
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
EDIT 20070526:
There's now a pure bash edition that doesn't require a Ruby interpreter. Cheers James!
"Edit with gvim" context menu in Konqueror. Has support for gvim's serverlist. This lets you open a file into any already running gvim instance.
This is something I saw in Windows Explorer when I was using gvim there. After using it I couldn't believe I actually got around without it. Really good stuff. Since Konqueror is so incredibly-fantastic I was SURE it could do it as well. And it does!
How it works:
You run the ruby script which daemonizes itself. The daemon checks how many gvim instances there are running. It writes the serverlist info to a temporary file in /tmp in the format of a regular service menu. When done, it copies that to ~/.kde/share/apps/konqueror/servicemenus/gvim_servers.desktop
Then removes the temporary file and sleeps for 10 seconds. When it wakes up the cycle repeats, etc, etc.
cons
1. needs the RUBY interpreter
2. runs as a daemon
3. 10 second delay between updates (you can change this)
Have fun and thank you!
Please login or register to add a comment or rating