question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spacemacs-esque leader key?

See original GitHub issue

Issue Description

Hiya! I’m very new to Kakoune type keybindings, so I was wondering if, with Dance, it’s still possible to define keybindings like Spacemacs, where <space> is a leader key to do all sorts of things. If so, how can I do this?

So basically for text editing I’d still use Dance, but in normal mode etc I am able to use <space> as a leader key.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
71commented, Sep 10, 2021

The API for named menus has changed. Now, args should be { "input": "leader" }.

0reactions
zetashiftcommented, Sep 11, 2021

Ah that package.json had the answer, I ended up with this:

 {
    "key": "capslock a",
    "when": "editorTextFocus && dance.mode == 'normal'",
    "title": "Insert at line end",
    "command": "dance.modes.insert.lineEnd"
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Spacemacs documentation
Key bindings are organized using mnemonic prefixes like b for buffer, ... use the emacs editing style which puts the leader key on...
Read more >
How to use CMD as a leader key on Spacemacs
In my case I use Spacemacs, there are two very important commands I use a lot: M-m : the leader key, i.e., the...
Read more >
mohkale/spaceleader: emacs leader-key ... - GitHub
leader -major-mode-key: an optional shortcut key for leader-key then leader-major-mode-prefix. only for normal-state maps.
Read more >
Spacemacs - Using two leader keys : r/emacs - Reddit
I have been wanting to try spacemacs, but I'm used with my bindings and using ',' as a leader. Is it possible to...
Read more >
How to show available options with evil-leader? (like ...
Spacemacs has a nice ability to show available keys when pressing the leader key. How can bound leader keys be displayed with evil-leader...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found