aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 507e5be6..16f43591 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -460,19 +460,6 @@ pub fn select_regex(cx: &mut Context) {
}
pub fn split_selection(cx: &mut Context) {
- // TODO: this needs to store initial selection state, revert on esc, confirm on enter
- // needs to also call the callback function per input change, not just final time.
- // could cheat and put it into completion_fn
- //
- // kakoune does it like this:
- // # save state to register
- // {
- // # restore state from register
- // # if event == abort, return early
- // # add to history if enabled
- // # update state
- // }
-
let prompt = ui::regex_prompt(cx, "split:".to_string(), |doc, regex| {
let text = doc.text().slice(..);
let selection = selection::split_on_matches(text, doc.selection(), &regex);