From 6a43880a7ef6899f0d66c1b0a63a7e7b5610236a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 3 Aug 2026 00:32:11 -0300 Subject: pipe selections through shell commands --- src/config.zig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/config.zig') 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 -- cgit v1.3