Closed mhwombat closed 2 years ago
You can ask the menubar for those functions. For example, my ~/.textadept remaps a lot of the existing key bindings such as here: https://github.com/orbitalquark/.textadept/blob/235d6aeca4e36cd56ed7f1fb7e83dcac310bd776/modules/textadept/keys.lua#L57
Will that work for you?
Yes, that works for me.
Some of the default keymaps for Textadept use anonymous functions (see example below). It would be great if all of them, or at least the most useful ones, could be converted into named functions and exported by the API. If you would like me to make the change and do a pull request, let me know.
As it stands, in order to remap these functions I have to copy and paste your code. If later on you were to make improvements to them, I wouldn't get the improvements unless I noticed that you had modified the code. But if they were API functions, I would automatically have the latest version.