Re: Key assignment
Brought to you by:
set
From: Thiago F.G. A. <tf...@za...> - 2001-09-14 15:45:46
|
On 12/09/01 10:33:27, salvador wrote: >Yes, but isn't safe. When you do it using the TUI you *must* type the key you want. Under DOS you >won't get any surprise, the key you type is exactly what the editor gets and the name is quite >right. But under other OSs or when you have a non-us keyboard the name could be really different or >the key could be absent. A good example is Linux, some key combinations doesn't generate any code >that the editor can understand, that's configurable at OS level (in Debian >/etc/console-tools/default.kmap.gz). >If you edit a file by hand you can get very bad surprises. This reminds me of something I saw in the Zed editor. It uses a text file for the key bindings. To edit this file, the editor has a comand that switches the editor to "code mode". In this mode, for every key you type, it inserts que corresponding code string (escape sequence) generated by the key. To exit code mode, you press ESC twice (or something like this, I don't remeber). >> 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. > >Is impossible. The keys assigned to menues and status bar accelerators are configured in the >menubind.smn file. >It can't be in another way. If you don't modify the menu at the same time you modify the >accelerator you will get really silly situations. Suppose you put Shift+F9 == SDG, but you don't >modify the menu, then the menu will clearly say SDG==F9 and that's more than confusing. >I know the documentation is quite hard to read because is mainly a lot of separated pieces and not >one coherent description. But what a hell that's currently 6438 lines, 29997 words and 192990 >characters long! I really need help to put all together. >I'm sure the keyboard configuration section should clearly state how to configure the menues and >status bar accelerators by pointing to the section that describes it. But beleive me that writing >such a huge documentation is hard specially when you must express complex stuff in a foreign >language. Don't be angry at me, man. I am on your side. I am not complaining about the documentation, I think it is very good. I knew that the the keys assigned to menues were configured in menubind.smn, I was just making a suggestion. I'm sorry if I didn't sound that way. >> 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. > >That's incorrect. In Linux you should copy this file to your home directory and modify this copy. Hum... I didn't know that. Thank you. Thiago |