mirror of
https://github.com/denisidoro/navi.git
synced 2026-07-18 00:54:58 +00:00
`commandline --current-process` treats newlines as process (pipe)
boundaries, which flattens multi-line snippets into a single line.
For example, a snippet like:
ffmpeg \
-i <input> \
-preset slow \
-codec:a aac
would be inserted as:
ffmpeg \ -i <input> \ -preset slow \ -codec:a aac
Replace with `commandline --replace` which operates on the full
buffer and preserves newlines. Add `end-of-line` to position the
cursor at the end after replacement. Quote variables and add `--`
to prevent snippets starting with `-` from being interpreted as
flags.
|
||
|---|---|---|
| .. | ||
| navi.plugin.bash | ||
| navi.plugin.elv | ||
| navi.plugin.fish | ||
| navi.plugin.nu | ||
| navi.plugin.ps1 | ||
| navi.plugin.zsh | ||