From d3ddc8dea6844f836199196c44b08e63fdf837d0 Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Sun, 21 Feb 2021 23:22:38 +0100 Subject: wip --- helix-term/helix.log | 0 helix-term/src/commands.rs | 2 ++ helix-term/src/keymap.rs | 8 ++++++-- helix-term/test2.txt | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 helix-term/helix.log create mode 100644 helix-term/test2.txt (limited to 'helix-term') diff --git a/helix-term/helix.log b/helix-term/helix.log new file mode 100644 index 00000000..e69de29b diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 353d79cc..98e79b44 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -846,6 +846,8 @@ pub fn exit_select_mode(cx: &mut Context) { cx.doc().mode = Mode::Normal; } +pub fn goto_definition(cx: &mut Context) {} + // NOTE: Transactions in this module get appended to history when we switch back to normal mode. pub mod insert { use super::*; diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 67490003..d9fe348f 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -311,8 +311,12 @@ pub fn default() -> Keymaps { code: KeyCode::Esc, modifiers: Modifiers::NONE } => commands::normal_mode as Command, - key!('g') => commands::move_file_start as Command, - key!('e') => commands::move_file_end as Command, + key!('g') => commands::move_file_start, + key!('e') => commands::move_file_end, + key!('d') => commands::goto_definition, + key!('t') => commands::goto_type_definition, + key!('r') => commands::goto_reference, + key!('i') => commands::goto_implementation, ), ) } diff --git a/helix-term/test2.txt b/helix-term/test2.txt new file mode 100644 index 00000000..aa674488 --- /dev/null +++ b/helix-term/test2.txt @@ -0,0 +1 @@ +awdwadwadwa njvkrnvjre eahdwau kjvreng -- cgit v1.2.3-70-g09d2