-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu (feature request) #438
Comments
I agree this would be nice to have. Thanks for the reminder. While CDK (the terminal widget toolkit Textadept uses) supports menu widgets, I don't think it has a menu bar or support for nested submenus. Writing those widgets would be difficult for me, so that's why the terminal version of Textadept doesn't have menus :( The "Tools > Select Command" (Ctrl+P) dialog helps alleviate this to an extent though. |
Honest question: is it really that difficult to
? I ask because it sounds like 10 lines of C code to my experience and it would make a huge difference in term of usability and initial learning curve. (instead of hardcoding the menu it could be even easily possibile to use an external file which binds a new item of the menu to the relative function) |
It might not be difficult to do, but it is a hard-coded, half-baked, inflexible solution that defeats the purpose of Textadept. Using an external file adds an additional layer of complexity (and failure point) that would likely not be worth it. Ctrl+P for now is the way to go through Textadept's menu in the terminal. |
You are 100% right I didn't know about CTRL-P. |
Textadept's keybindings were designed to be as consistent and
predictable as possible across all platforms, including the terminal
version. Escape cancels autocompletion, calltips, snippets,
find/replace, etc. Having it show the command entry would not fit in.
|
Why isn't this issue closed yet? |
I need to find the time to experiment with https://invisible-mirror.net/cdk/manpage/cdk_menu.3.html and see if it's viable. If it's not, then I'll close this. |
After investigating further, CDK's menu widget is too limited.
For reference, here is my test snippet:
I also had to update CMakeLists.txt to include Using that snippet I was able to run Closing this. The workaround for lack of a menu is |
This is currently the only text editor for terminal with CUA standard keybindings that supports text selection, mouse, and ESPECIALLY text folding/collapsing (it's literally the only one with this feature).
Tilde, Micro, and NiceEditor are missing these features.
Can you please...please🙏 add a menu? Even just with File -> Open / Save / Quit
Thank you
The text was updated successfully, but these errors were encountered: