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
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
@dcz Hmm, :eval ‘paste here’ isn’t working?
=> More informations about this toot | More toots from marcc@fosstodon.org
@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
@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
@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
@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
@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 This content has been proxied by September (3851b).Proxy Information
text/gemini