Skip to content

Commit

Permalink
rc repl: Normalise REPL commands
Browse files Browse the repository at this point in the history
It's unclear what the `send-text` alias does at first glance,
so prefixing it with "repl-" both fixes that and helps make it
discoverable via the command prompt's fuzzy matcher.

The `repl` alias also seems too generic a name, the "-new" suffix
should hopefully give a hint that it creates a new window.
  • Loading branch information
lenormf committed Sep 1, 2020
1 parent 6c85c0c commit 87f9be6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions doc/pages/changelog.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ released versions.

== Development version

* The `repl` and `send-text` aliases have been renamed respectively into
`repl-new` and `repl-send-text`.

* Daemon mode (`-d` switch) does not fork anymore.

== Kakoune 2020.08.04
Expand Down
4 changes: 2 additions & 2 deletions rc/windowing/repl/kitty.kak
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ define-command -hidden -params 0..1 \
}
}

alias global repl kitty-repl
alias global send-text kitty-send-text
alias global repl-new kitty-repl
alias global repl-send-text kitty-send-text

}
4 changes: 2 additions & 2 deletions rc/windowing/repl/tmux.kak
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define-command -hidden tmux-send-text -params 0..1 -docstring %{
}
}

alias global repl tmux-repl-horizontal
alias global send-text tmux-send-text
alias global repl-new tmux-repl-horizontal
alias global repl-send-text tmux-send-text

}
4 changes: 2 additions & 2 deletions rc/windowing/repl/x11.kak
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define-command x11-send-text -docstring "send the selected text to the repl wind
}
}

alias global repl x11-repl
alias global send-text x11-send-text
alias global repl-new x11-repl
alias global repl-send-text x11-send-text

}

0 comments on commit 87f9be6

Please sign in to comment.