Giter VIP home page Giter VIP logo

Comments (10)

delabassee avatar delabassee commented on August 15, 2024

It's a bit difficult to find bindings that are relatively obvious and free.
I suggest Ctrl+Enter for "Run" and Ctrl+Backspace for "Clear", +Enter & +Backspace on Mac.

from devrel.

nipafx avatar nipafx commented on August 15, 2024

Ctrl+Enter for "Run" is great but Ctrl+Backspace is already taken for "delete word before cursor" (in most text editors and browsers). You could use Ctrl+Shift+Backspace for that.

from devrel.

delabassee avatar delabassee commented on August 15, 2024

Not a big fan of a 3 keys combo. What about Ctrl+Esc instead?

from devrel.

danthe1st avatar danthe1st commented on August 15, 2024

Ctrl+Esc is at least used by Windows for bringing up the start menu.

from devrel.

carimura avatar carimura commented on August 15, 2024

+1 to command+return on Mac for running -- makes sense and is consistent with other behaviour (like sending this comment). I think sending the focus to the code window after run makes sense.

It's fine If we don't settle on clear for now as cmd+a then delete is a native way to clear the window without having to map anything and it keeps the focus.

from devrel.

delabassee avatar delabassee commented on August 15, 2024

Note that "clear" clears both the editor and the console.

from devrel.

tofflos avatar tofflos commented on August 15, 2024

I'd be super happy with just the Run shortcut and I'm not sure I would use a Clear shortcut often enough to warrant a shortcut.

from devrel.

delabassee avatar delabassee commented on August 15, 2024

Isn't Esc a good "Clear" (console & editor) shortcut?

from devrel.

nipafx avatar nipafx commented on August 15, 2024

Ctrl+Shift+Backspace is not uncommon for larger deletes, e.g. in GitHub comment fields it deletes a line.

Isn't Esc a good "Clear" (console & editor) shortcut?

Only if a popup asks whether you really want to do that. Otherwise Esc is too commonly used to have such destructive effects.

from devrel.

danthe1st avatar danthe1st commented on August 15, 2024

I am unsure whether an option to clear the console together with the output is really necessary. After all, the console is cleared anyways when re-running the code.

from devrel.

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.