excalidraw icon indicating copy to clipboard operation
excalidraw copied to clipboard

Vim motions or keybindins

Open Notnobcoder opened this issue 2 years ago • 8 comments

Can we add vim motions and key bindings for text edition

Notnobcoder avatar Aug 23 '23 07:08 Notnobcoder

@Notnobcoder please elaborate what do you mean ?

ad1992 avatar Aug 24 '23 05:08 ad1992

We may add vim motions later when switch to a richtext editor. But even then it seems a bit out of scope in the context of Excalidraw where most text are short diagram labels.

dwelle avatar Aug 28 '23 08:08 dwelle

Vim bindings would be absolutely neat

Jhonathan-Pedroso avatar Sep 13 '23 15:09 Jhonathan-Pedroso

@Jhonathan-Pedroso @Notnobcoder would you guys like to provide an example of how Vim bindings can help here?

vigasdeep avatar Jun 02 '24 07:06 vigasdeep

Let me cook:

Main use case: For diagramming (would mostly use it when navigating and editing flowcharts)

i don't want to constantly have to reach for my mouse to create new nodes in the fllowchart. The flowchart update was well received and we now have bindings (CMD/CTRL + ) to create new nodes, but it's just a pain to use that short cut.

A nice-to-have would be:

  • The ability to use (CMD/CTRL +h/j/k/l) to create new nodes (this is the thing I'd really like to have)
  • A model interface to navigate nodes. For example, you can move around nodes in normal mode pressing h/j/k/l and hit i to edit the current note you're at.
  • (optional) vim bindings to edit the text itself

@dwelle @ad1992

niceiq avatar Nov 20 '24 21:11 niceiq

Adding Vim motion support for text editing in Excalidraw would be a fantastic feature! It seems others have already requested this as well, and I believe it would greatly enhance the workflow for many users.

radouane-tamouss avatar Jan 06 '25 21:01 radouane-tamouss

Yeah I think the ability to move between nodes, and start insert mode within the vim binding; attached some background with line numbering as a grid; would be nice to jump around and quickly create content;

On Mon, Jan 6, 2025, 3:43 PM TAMOUSS Radouane @.***> wrote:

Adding Vim motion support for text editing in Excalidraw would be a fantastic feature! It seems others have already requested this as well, and I believe it would greatly enhance the workflow for many users.

— Reply to this email directly, view it on GitHub https://github.com/excalidraw/excalidraw/issues/6925#issuecomment-2573979064, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNQBDY5YB4VK36DWKNAKIT2JL2HNAVCNFSM6AAAAABSFP2K2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZTHE3TSMBWGQ . You are receiving this because you were mentioned.Message ID: @.***>

Jhonathan-Pedroso avatar Jan 07 '25 01:01 Jhonathan-Pedroso

i just want to be able to change the camera position with j h k l

Vilhelm-Ian avatar Jun 01 '25 07:06 Vilhelm-Ian