navi/shell
Lam Chau ec04fa91b4 fix: preserve newlines in multi-line fish widget snippets
`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.
2026-03-06 02:24:04 -08:00
..
navi.plugin.bash fix: bash widget sanitization for & 2025-11-26 12:24:40 +01:00
navi.plugin.elv Update legacy syntax from Elvish widget 2022-01-13 21:34:55 +11:00
navi.plugin.fish fix: preserve newlines in multi-line fish widget snippets 2026-03-06 02:24:04 -08:00
navi.plugin.nu mvp. 2024-06-24 18:50:29 +08:00
navi.plugin.ps1 Fix widget powershell 2025-03-18 07:27:18 +09:00
navi.plugin.zsh Widget: fix replacements in case of multiple occurrences 2021-08-09 10:47:03 -03:00