Hi! I’m happy to publicly admit that, despite 30 years professional programming, it just isn’t clicking for me.
Is there a step by step guide that will take me through the workflow of interacting with the shell? I’ve read the docs, I’ve read trampoline, I’ve gone through a bunch of plugins including fzf.kak, but I’m just not "grok"ing it.
Some use cases I wanted to achieve, but the only progress I’ve made is making a head-shaped hole in the brick wall:
- formatting the contents of the buffer (on save) by calling a Lua or SQL formatter
- executing
cargo test
orcargo clippy
in a new weztern split - executing FZF with the lines of the current buffer
- etc.
My questions range from:
- how does kakoune know which terminal I’m using in order to know which command to use from https://github.com/mawww/kakoune/tree/master/rc/windowing
- how does fzf.kak manage to show FZF in the same terminal pane as kakoune given kakoune doesn’t have any native windowing capabilities? Is it Tmux specific integration?
- I understand kakscript can do things with
%sh{}
but how does it interpret the results of executing that? For example, if%sh{}
somehow called FZF with the contents of the buffer, how would it know to jump to the selected line? It can’t possible know unless it’s told…but how to tell it what to do with the results?
I’m not looking for somebody to do this for me, or to give me step by step instructions (although I wouldn’t say no ;-)) - I want to learn myself. I’m really just asking for any helpful resources I should look at.
Thanks!