Giter VIP home page Giter VIP logo

Comments (6)

BDisp avatar BDisp commented on July 21, 2024 1

I absolutely agree changing the current Ctrl+Q to Esc or any other program that does not interact with any other program, especially VS2022 or VSCode, where Ctrl+Q is intercepted by any of the aforementioned, instead of the developed application, if we are using an integrated terminal. I know it is possible to change the shortcut for these applications but it would be better to change the Terminal.Gui shortcut.

from terminal.gui.

dodexahedron avatar dodexahedron commented on July 21, 2024

Escape is also not exactly a hard standard, and is in fact used by some software as what it is - the escape key1, not a "quit application" key.

Even in Unixy systems, it's all over the place.

Three of the most commonly used utilities, emacs (ctrl-x, ctrl-c, or esc-x depending on distro defaults), vi (esc if in any other mode and then :q), and nano (ctrl-x), all have different means of exiting. In fact, vi is a big case for esc NOT meaning quit.

As such, I think it's fine we default to ctrl+Q, as it's unlikely to be otherwise bound beyond the scope of the application using TG.

Footnotes

  1. such as for entering characters the terminal would normally disallow, ignore, or which have special meaning, like ! ↩

from terminal.gui.

tig avatar tig commented on July 21, 2024

OCGV has used esc for 4 years with tons of Mac and Linux users. None have complained.

I think the default quit key should be esc on all platforms. With CM it is trivial for users to change this if they don't like it.

from terminal.gui.

dodexahedron avatar dodexahedron commented on July 21, 2024

It would be nice if everyone would just adopt one.

My main opinion on it is basically it ain't broke, so don't fix it.

But it's also unimportant for exactly this reason, so it's not worth more back and forth if you want to change it regardless πŸ€·β€β™‚οΈ :

it is trivial for users to change this if they don't like it.

Just wanted to point out an alternative viewpoint based on what TG is and the environments it is most likely to exist in, basically. If it weren't configurable, then it would register on the ol' care-o-meter a lot more and warrant polling or some sort of actual statistical research. But it is, so it doesn't move the needle as far as I'm concerned.

Definitely warrants a high-visibility bullet point in migration docs though, for any change to that.

from terminal.gui.

dodexahedron avatar dodexahedron commented on July 21, 2024

Yeah I think we're all aligned on this, more or less.

I did run into am interesting one a few days ago that made me think about it again.

But the fact that it is trivially configurable both in code and configuration files really just solves the problem entirely, so it's cool whatever it ends up being, within reason . πŸ‘

Still needs to be loudly documented of course.

I'd even suggest that, in samples and "getting started" type documentation, we repeat what the default quit key is, perhaps in a short bulleted list of important concepts for the given doc/sample, plus a simple link to the config docs, so it's dead simple for a consumer, and any potential "how do I exitβ€½" issues posted can be closed with a well-deserved "RTFM" linked to any one of those. Plus that would boost their ranking in search engines. πŸ‘Œ

from terminal.gui.

dodexahedron avatar dodexahedron commented on July 21, 2024

Besides, it's already one of the oldest jokes in terminal-land that there are users out there who have been stuck inside vi for years, because they can't figure out how to exit. That'd be a fun little easter egg kind of reference to subtly make somewhere in docs or code comments. πŸ˜…

from terminal.gui.

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.