Skip to content

Commit

Permalink
Change shell function names to match prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnikar committed Aug 21, 2021
1 parent ca6ff06 commit 612bb7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ impl Command {
select_textobject_around, "Select around object",
select_textobject_inner, "Select inside object",
shell_pipe, "Pipe selections through shell command",
shell_pipe_ignore, "Pipe selections into shell command, ignoring command output",
shell_insert, "Insert output of shell command before each selection",
shell_append, "Append output of shell command after each selection",
shell_filter, "Filter selections with shell predicate",
shell_pipe_to, "Pipe selections into shell command, ignoring command output",
shell_insert_output, "Insert output of shell command before each selection",
shell_append_output, "Append output of shell command after each selection",
shell_keep_pipe, "Filter selections with shell predicate",
suspend, "Suspend",
);
}
Expand Down Expand Up @@ -4068,19 +4068,19 @@ fn shell_pipe(cx: &mut Context) {
shell(cx, "pipe:", true, ShellBehavior::Replace);
}

fn shell_pipe_ignore(cx: &mut Context) {
fn shell_pipe_to(cx: &mut Context) {
shell(cx, "pipe-to:", true, ShellBehavior::None);
}

fn shell_insert(cx: &mut Context) {
fn shell_insert_output(cx: &mut Context) {
shell(cx, "insert-output:", false, ShellBehavior::Insert);
}

fn shell_append(cx: &mut Context) {
fn shell_append_output(cx: &mut Context) {
shell(cx, "append-output:", false, ShellBehavior::Append);
}

fn shell_filter(cx: &mut Context) {
fn shell_keep_pipe(cx: &mut Context) {
shell(cx, "keep-pipe:", true, ShellBehavior::Filter);
}

Expand Down
8 changes: 4 additions & 4 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,10 +509,10 @@ impl Default for Keymaps {

"\"" => select_register,
"|" => shell_pipe,
"A-|" => shell_pipe_ignore,
"!" => shell_insert,
"A-!" => shell_append,
"$" => shell_filter,
"A-|" => shell_pipe_to,
"!" => shell_insert_output,
"A-!" => shell_append_output,
"$" => shell_keep_pipe,
"C-z" => suspend,
});
let mut select = normal.clone();
Expand Down

0 comments on commit 612bb7b

Please sign in to comment.