Dabbrev in Jed

26 January 2004   0 comments   Linux

http://jedmodes.sourceforge.net/mode/dabbrev/

Mind That Age!

This blog post is 13 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

dabbrev is a plugin for Jed that allows you to repeat a word that has been written before with a simple key-command.

Suppose you write somewhere in your text the word: SelectHDSDirectories_sql. Then a little later you intend to write that word again, but can't be asked to type it all out, then all you do is write Sel and press CTRL-Q (i.e. Ctrl button at the same time as the key q) and it finishes the word for you.

This is very similar to how it works in say VB or WingIDE where you get a cute little box listing suggestions that you can tab to. See this example screenshot from WingIDE

The problem I had was that it didn't work. I email the mailing list but no one replied. The problem was that the key-binding I chose was already taken for something else. Now I changed my .jedrc file to look like this and then it worked:

% expand from Dabbrev_Default_Buflist
setkey("dabbrev", "^Q"); 
% expand from visible buffers
setkey("dabbrev(get_buflist(1))", "\ae"); 
autoload("get_bufutils", "dabbrev");

Update: The second setkey command caused problems for me with C-G (i.e. Ctrl+g) so it should instead be:

% expand from Dabbrev_Default_Buflist
setkey("dabbrev", "^Q"); 
Follow @peterbe on Twitter

Comments

Thank you for posting a comment

Your email will never ever be published


Related posts

Previous:
Labels in HTML forms 26 January 2004
Next:
Passed my grading! 26 January 2004
Related by Keyword:
Local jed settings 19 April 2013
Wing IDE versus Jed 11 December 2008
Geeking with tags file for Jed 29 May 2006
Jed Tags with ntags (for dummies) 11 February 2006
Geeking with Eterm and Tkinter 09 February 2006
Related by Text:
input/textarea switcher with jQuery 11 January 2008
Advanced live-search with AngularJS 04 February 2014
Keybinding ALT-F in Jed 27 January 2004
Wing IDE versus Jed 11 December 2008
Geeking with Eterm and Tkinter 09 February 2006