summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-03 00:32:11 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit6a43880a7ef6899f0d66c1b0a63a7e7b5610236a (patch)
tree2fc12106e0b5f0eb0abcaa345eaa85b39b5bcdd7 /src/config.zig
parentc86d3bb210822b3128a0759533f1bec3654364b7 (diff)
downloadpardes-6a43880a7ef6899f0d66c1b0a63a7e7b5610236a.tar.gz
pardes-6a43880a7ef6899f0d66c1b0a63a7e7b5610236a.zip
pipe selections through shell commands
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index 3eedf707..a14ed797 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -356,6 +356,9 @@ pub const command_line: []const Chord = &.{.{ .cp = ':' }};
pub const search: []const Chord = &.{.{ .cp = '/' }};
pub const search_next: []const Chord = &.{.{ .cp = 'n' }};
pub const search_prev: []const Chord = &.{.{ .cp = 'N' }};
+/// Helix `|`: in body normal mode, pipe every file selection through one
+/// command typed in the pane's visible tag-tail input.
+pub const pipe_selection: []const Chord = &.{.{ .cp = '|' }};
/// Enter on an armed search input runs it; `escape` (PART 3) abandons it.
pub const search_submit: []const Chord = &.{.{ .cp = Key.enter }};
@@ -574,6 +577,10 @@ pub const symbol_marker = " WsSymbols /";
/// the one input that previews as you type (pardes.zig, previewSelRegex).
pub const select_marker = " Select /";
pub const split_marker = " Split /";
+/// The `|` prompt is not an executable tag word: the marker only makes the
+/// pending shell filter visible, and everything after it is preserved as the
+/// exact command passed to `/bin/sh -c`.
+pub const pipe_marker = " |";
/// Output-buffer names (acme's +Errors). Cosmetic now, and deliberately so: a
/// buffer is DERIVED from the command that opened it (output_pane.traits), and