Code Monkey home page Code Monkey logo

Comments (5)

orbitalquark avatar orbitalquark commented on June 21, 2024

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.

from textadept.

marco-trovato avatar marco-trovato commented on June 21, 2024

Honest question: is it really that difficult to

  1. Without even saving the text buffer currently on the screen, just violently print withut grace on the top of the screen "FILE" with "SAVE, LOAD and QUIT" below
  2. Wait for the right hotkey and call the relative function
  3. Just redraw/refresh the screen to show the editor to return to the working file

?

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)

from textadept.

orbitalquark avatar orbitalquark commented on June 21, 2024

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.

from textadept.

marco-trovato avatar marco-trovato commented on June 21, 2024

You are 100% right I didn't know about CTRL-P.
I have only one simple legit question: why in the holy cult of the dead cow did you chose CTRL-P instead of ESC ? This menu would have been perfect if I only knew it existed

from textadept.

orbitalquark avatar orbitalquark commented on June 21, 2024

from textadept.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.