Key assignment
Brought to you by:
set
From: Thiago F.G. A. <tf...@za...> - 2001-09-12 09:55:04
|
Hi, I have some things to say about the key assignment in SETEDIT. First of all, I think ".keybinds.dat" should be a text file. I change most of the default key assignments. For me it is easier/faster to edit a file than to reassign key by key using the GUI. And when I get a new version of SETEDIT I don't have to do it all again; I can just copy the file. Yes, right, I can do that with the binary file too. But if the file format changes from one version to the other (like the pmacros file changed, for instance), it is possible for me to peek at the files, see what has changed and make the necessary modifications. The list of key assignments doesn't show the keys assigned by the menues. This can be pretty annoying; I reassigned f9 to "make", but it didn't take effect because some menu assigned it to SDG. I think all key assignments should be in the same place. One possible solution to this: menubind.smn doesn't assign keys. At most, it specifies the name of the key that shows in the menu, but the actual key assignment is in keybinds.dat. Drawback: the information in the menus can get "old" (in the sense of not corresponding to the reality anymore). If you reassign a key related to some menu, you have to edit menubind.smn and change the key name. Not a very big problem, though. Another (better) idea: New file: ~/seteditrc -> user-specific macros and key assignments. Loaded at startup. New sLisp command: (bind keys command/macro) e.g.: (bind "^L" cmcOpenFile) ; assigns CTRL-L to cmcOpenFile (bind "#^M" my_macro) ; CTRL-SHIFT-M to my_macro where ^ == CTRL # == SHIFT @ == ALT This way you can define your macros and assign them to a key in the same file, like in Emacs. This solution also addresses another issue: the lack of user-specific macros. The macros file is system-wide and you can edit it only if root lets you do so. What do you think, SET? Thiago |