Ancestors

Toot

Written by dorotaC on 2025-01-25 at 16:50

I just tried to learn more of #kakoune .

Is there any way to paste commands all at once instead of typing them in?

Like, paste '%/#defined:wq' and have it execute.

[#]Editor #programming

=> More informations about this toot | More toots from dcz@fosstodon.org

Descendants

Written by dorotaC on 2025-01-25 at 16:55

Also, I gave up on learning more after being unable to figure out how to select a space between words.

I can move to the beginning of the next word.

I can move to the beginning of the previous word.

But end of the current word? Nope.

I wish there was an editor with a more orthogonal set of commands.

Like, W3 goes to the word 3 over.

Why can't I N3 to select 3 more search results?

Same with the bazillion of keys for going one word, WORD, forward, backward, to beginning, to end.

=> More informations about this toot | More toots from dcz@fosstodon.org

Written by marc on 2025-01-25 at 23:59

@dcz Hmm, :eval ‘paste here’ isn’t working?

=> More informations about this toot | More toots from marcc@fosstodon.org

Written by dorotaC on 2025-01-26 at 08:38

@marcc Hey, that exists! But I can't find any docs on the key syntax in Kakoune -_-.

=> More informations about this toot | More toots from dcz@fosstodon.org

Written by marc on 2025-01-26 at 10:13

@dcz What do you mean by key syntax?

If you mean documentations on key bindings there is :help keys and :help keymap.

There is also more documentation in the wiki (https://github.com/mawww/kakoune/wiki)

=> More informations about this toot | More toots from marcc@fosstodon.org

Written by dorotaC on 2025-01-26 at 11:15

@marcc The syntax for entering the key expressions. ":help keys" does help, but it's still rather incomplete. How do I enter "<", for example? Do I use "" or ""? Etc.

=> More informations about this toot | More toots from dcz@fosstodon.org

Written by dorotaC on 2025-01-26 at 15:41

@marcc Just tried :eval '%spub const' and indeed it isn't working.

unknown expand 'spub'

The help doesn't have any info about the syntax of the command.

I'm coming to the conclusion that kakoune is not strongly catering to people who are trying to discover its features.

=> More informations about this toot | More toots from dcz@fosstodon.org

Written by marc on 2025-01-26 at 20:18

@dcz

Hmm, I see what's missing.

% is the one special character that you need to escape (it's %%), it's documented in :help expansions.

I tried

:exec "%%spubchello"

And it replaces all occurrences of pub with hello.

Execute-keys runs keys as if they were pressed by the user and evaluate-commands evaluates parameters as if they were entered in the command prompt.

=> More informations about this toot | More toots from marcc@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113890022966372541
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
299.210121 milliseconds
Gemini-to-HTML Time
1.452076 milliseconds

This content has been proxied by September (3851b).