summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2020-09-01 13:30:34 +0300
committerFrank LENORMAND <lenormf@gmail.com>2020-09-01 13:34:52 +0300
commit87f9be67235d43222cd37c2dacc542271d26850f (patch)
tree4ddc25c7ec8ef2f89325ec3a18765be453028f99
parent6c85c0cb2944930bf64bd93e6196b243f9fd41c8 (diff)
rc repl: Normalise REPL commands
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.
-rw-r--r--doc/pages/changelog.asciidoc3
-rw-r--r--rc/windowing/repl/kitty.kak4
-rw-r--r--rc/windowing/repl/tmux.kak4
-rw-r--r--rc/windowing/repl/x11.kak4
4 files changed, 9 insertions, 6 deletions
diff --git a/doc/pages/changelog.asciidoc b/doc/pages/changelog.asciidoc
index 5727765d..6fe1714f 100644
--- a/doc/pages/changelog.asciidoc
+++ b/doc/pages/changelog.asciidoc
@@ -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
diff --git a/rc/windowing/repl/kitty.kak b/rc/windowing/repl/kitty.kak
index 6a1aa69b..b57d6f79 100644
--- a/rc/windowing/repl/kitty.kak
+++ b/rc/windowing/repl/kitty.kak
@@ -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
}
diff --git a/rc/windowing/repl/tmux.kak b/rc/windowing/repl/tmux.kak
index fe2915e3..eb507eac 100644
--- a/rc/windowing/repl/tmux.kak
+++ b/rc/windowing/repl/tmux.kak
@@ -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
}
diff --git a/rc/windowing/repl/x11.kak b/rc/windowing/repl/x11.kak
index 5832dddc..26dcd264 100644
--- a/rc/windowing/repl/x11.kak
+++ b/rc/windowing/repl/x11.kak
@@ -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
}