Giter Site home page Giter Site logo

customize key bindings about d2-vscode HOT 5 CLOSED

terrastruct avatar terrastruct commented on May 26, 2024
customize key bindings

from d2-vscode.

Comments (5)

BarryNolte avatar BarryNolte commented on May 26, 2024 1

Is this irony or Freudian? I used to work on debuggers...

This can be changed to whatever we want, this is the default I picked. On top of that, through 'Preferences: Open Keyboard....'

from d2-vscode.

gavin-ts avatar gavin-ts commented on May 26, 2024

Screen Shot 2023-01-31 at 11 26 23 AM

I think we just need to add a when condition so it is context dependent and only applies on a d2 file? (if specifying that is possible)

from d2-vscode.

gavin-ts avatar gavin-ts commented on May 26, 2024

Screen Shot 2023-01-31 at 11 32 45 AM

maybe we can define a regex match similar to what gitlens does here

from d2-vscode.

bgolinvaux avatar bgolinvaux commented on May 26, 2024

Hello. I am sorry, I am feeling really dumb, but the shortcut appeared in the Default (read-only) keyboard shortcuts and, not really knowing how extensions register their shortcuts, I mistakenly thought that it could not be changed.

Apologies for the silly request.

from d2-vscode.

BarryNolte avatar BarryNolte commented on May 26, 2024

Oh, there was a bug here :) The shortcut was active in any context, thus blocking the debug panel activation. I changed it to only be active when a d2 document is active, which works since running the debugger on a d2 document doesn't make any sense. But, of course, you can change it to any key combination you want.

from d2-vscode.

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.