Re: [code] Can I access the menu-bar with the Curses UI?

From: Mitchell <m.att.foicica.com>
Date: Tue, 23 Jul 2019 16:26:00 -0400 (EDT)

Hi David,

On Tue, 23 Jul 2019, David Tamar wrote:

> I took some time to figured out what was wrong in my init file, and it turns out the “_L[]” dictionary which I gave up mentioning in every key binding I made. I re-added that back in each occasion a menu item was accessed by its name and my keybindings are fully-functional now throughout Curses.
>
> There are some small clashes with bash/terminal keybindings which I probably will have to re-adjust. Most notably Ctrl-Z, which halts the execution of the program and returns to bash, while it is also my “undo” binding in Textadept.

You can disable this if you want. Check out the FAQ[1] and search for "Undo".

> I didn't know it was so important to mention “_L[...]” everywhere, because some modules provide menu items that don't require “_L[...]”, for example here:
>
> `local m_ctags = textadept.menu.menubar[_L['_Search']]['_Ctags']`
>
> The “['_Search']” item is ambifixed with “_L[...]”, however “['_Ctags']” is not.

The `_L` table is used for localizations. Core messages need to be localized. Messages that come from user modules like Ctags do not necessarily need it.

Cheers,
Mitchell

[1]: https://foicica.com/textadept/FAQ.html

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 23 Jul 2019 - 16:26:00 EDT

This archive was generated by hypermail 2.2.0 : Wed 24 Jul 2019 - 06:57:56 EDT