aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs2
-rw-r--r--helix-term/src/keymap/default.rs1
-rw-r--r--helix-term/src/ui/prompt.rs8
3 files changed, 6 insertions, 5 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index d3899075..f4f0876c 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -350,7 +350,7 @@ impl Application {
}
fn refresh_config(&mut self) {
- let config = Config::load(helix_loader::config_file()).unwrap_or_else(|err| {
+ let config = Config::load_default().unwrap_or_else(|err| {
self.editor.set_error(err.to_string());
Config::default()
});
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs
index 9b144758..b8c1a400 100644
--- a/helix-term/src/keymap/default.rs
+++ b/helix-term/src/keymap/default.rs
@@ -351,6 +351,7 @@ pub fn default() -> HashMap<Mode, Keymap> {
"C-w" => delete_word_backward,
"A-backspace" => delete_word_backward,
"A-d" => delete_word_forward,
+ "A-del" => delete_word_forward,
"C-s" => commit_undo_checkpoint,
"left" => move_char_left,
diff --git a/helix-term/src/ui/prompt.rs b/helix-term/src/ui/prompt.rs
index 55b08032..36ee62c3 100644
--- a/helix-term/src/ui/prompt.rs
+++ b/helix-term/src/ui/prompt.rs
@@ -477,14 +477,14 @@ impl Component for Prompt {
(self.callback_fn)(cx, &self.line, PromptEvent::Abort);
return close_fn;
}
- alt!('b') | alt!(Left) => self.move_cursor(Movement::BackwardWord(1)),
- alt!('f') | alt!(Right) => self.move_cursor(Movement::ForwardWord(1)),
+ alt!('b') | ctrl!(Left) => self.move_cursor(Movement::BackwardWord(1)),
+ alt!('f') | ctrl!(Right) => self.move_cursor(Movement::ForwardWord(1)),
ctrl!('b') | key!(Left) => self.move_cursor(Movement::BackwardChar(1)),
ctrl!('f') | key!(Right) => self.move_cursor(Movement::ForwardChar(1)),
ctrl!('e') | key!(End) => self.move_end(),
ctrl!('a') | key!(Home) => self.move_start(),
- ctrl!('w') => self.delete_word_backwards(cx),
- alt!('d') => self.delete_word_forwards(cx),
+ ctrl!('w') | alt!(Backspace) | ctrl!(Backspace) => self.delete_word_backwards(cx),
+ alt!('d') | alt!(Delete) | ctrl!(Delete) => self.delete_word_forwards(cx),
ctrl!('k') => self.kill_to_end_of_line(cx),
ctrl!('u') => self.kill_to_start_of_line(cx),
ctrl!('h') | key!(Backspace) => {