aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
Commit message (Collapse)AuthorAge
* Refactor keyevent handling using key, ctrl macros (#1058)Gokul Soumya2021-11-10
| | | | | | Adds ctrl! and alt! macros (which existed before the big keymap refactor) and uses them in event handling of Components. Note that this converts crossterm's KeyEvent to our own KeyEvent on each invocation of handle_event in Components.
* Ensure that identical keymaps stay in sync (#1056)Gokul Soumya2021-11-10
| | | | | | | Space mode and view mode are duplicated on two different keybinds, and they tend to get out of sync by contributers forgetting to update both of them. This commit adds a test that explicitly checks that they are identical. Prevents issues like #1050.
* Check for duplicate keys in default keymapGokul Soumya2021-11-10
|
* Change page keybinds in view modeGokul Soumya2021-11-10
| | | | | | | b which was assigned to page_up conflicts with align to bottom, so this commit replaces page up, down, etc keybinds to use normal mode keybinds (C-f, C-b, etc) in view mode too.
* Update `space w` window mode (#1050)Omnikar2021-11-10
|
* Add LSP rename_symbol (space-r) (#1011)CossonLeo2021-11-08
| | | improve apply_workspace_edit
* minor: Extend search was decclared twice in the keymapBlaž Hrastnik2021-11-06
|
* Add reverse search functionality (#958)Gygaxis Vainhardt2021-11-06
| | | | | | | | | | | | | * Add reverse search functionality * Change keybindings for extend to be in select mode, incorporate Movement and Direction enums * Fix accidental revert of #948 in rebase * Add reverse search to docs, clean up mismatched whitespace * Reverse search optimization * More optimization via github feedback
* Implement "Goto next buffer / Goto previous buffer" commandsath32021-11-04
|
* Hide keys bound to `no_op` from infobox (#971)Omnikar2021-11-04
|
* Simplify BTreeSet constructionTriton1712021-11-03
| | | Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Implement key ordering for info boxDaniel Ebert2021-11-03
|
* Add arrow-key bindings for window switching (#933)Gygaxis Vainhardt2021-10-30
|
* Use deserialization fix insteadNehliin2021-10-28
|
* Apply suggestions from code reviewOskar Nehlin2021-10-28
| | | Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Make key macro more portableNehliin2021-10-28
|
* Fix order being empty and add testNehliin2021-10-28
|
* Move test to test moduleNehliin2021-10-28
|
* Fix panic when using multi-level key mappingNehliin2021-10-28
|
* find motion and textobj motion repeat (#891)CossonLeo2021-10-24
|
* Add commands for moving between splits with a direction (#860)Oskar Nehlin2021-10-23
| | | | | | | | | * Add commands for moving between splits with a direction * Update keymaps * Change picker mapping * Add test and clean up some comments
* Implement 'remove_primary_selection' as Alt-,Blaž Hrastnik2021-09-24
| | | | | | This allows removing search matches from the selection Fixes #713
* experiment: space+k for LSP doc, K for keep_selectionsBlaž Hrastnik2021-09-24
|
* experiment: Move keep_primary_selection to ,Blaž Hrastnik2021-09-24
|
* Initial implementation of global search (#651)Leoi Hung Kin2021-09-21
| | | | | | | | | | | * initial implementation of global search * use tokio::sync::mpsc::unbounded_channel instead of Arc, Mutex, Waker poll_fn * use tokio_stream::wrappers::UnboundedReceiverStream to collect all search matches * regex_prompt: unified callback; refactor * global search doc
* feat: Sticky view mode with Z (#719)Gokul Soumya2021-09-10
|
* Add command to extend to line start or end (#717)Kangwook Lee (이강욱)2021-09-07
|
* Fix escape not exiting insert mode (#712)Gokul Soumya2021-09-05
| | | | | Regression due to #635 where escape key in insert mode would not exit normal mode. This happened due to hard coding the escape key to cancel a sticky keymap node.
* Add a sticky mode for keymaps (#635)Gokul Soumya2021-09-05
|
* Add commands that extends to long words (#706)Kangwook Lee (이강욱)2021-09-04
|
* add_newline unimpaired mapping (#653)oberblastmeister2021-09-01
| | | | | | | | | | | | | | | | | | | * added some keymaps * remove * remove wrong mappings * remove * wrong import * use enum * correct line ending * added to book * column
* Shell commands (#547)Omnikar2021-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement shell interaction commands * Use slice instead of iterator for shell invocation * Default to `sh` instead of `$SHELL` for shell commands * Enforce trailing comma in `commands` macro * Use `|` register for shell commands * Move shell config to `editor` and use in command * Update shell command prompts * Remove clone of shell config * Change shell function names to match prompts * Log stderr contents upon external command error * Remove `unwrap` calls on potential common errors `shell` will no longer panic if: * The user-configured shell cannot be found * The shell command does not output UTF-8 * Remove redundant `pipe` parameter * Rename `ShellBehavior::None` to `Ignore` * Display error when shell command is used and `shell = []` * Document shell commands in `keymap.md`
* Make `v` in select mode switch back to normal mode (#660)Omnikar2021-08-27
| | | | | * Make `v` in select mode switch back to normal mode * Move select mode toggle to keymap instead of command
* Refactor infobox rendering and parsing (#579)Gokul Soumya2021-08-17
|
* Resolve a couple TODOsBlaž Hrastnik2021-08-08
|
* Implement alt-( and alt-) to rotate selection contentsBlaž Hrastnik2021-08-08
|
* Implement selection rotation with `(` and `)`Blaž Hrastnik2021-08-06
|
* Refactor copy selection verticallyBlaž Hrastnik2021-08-05
|
* Vertical SelectionCor2021-08-05
|
* Add `goto_last_line` command, and bind it to `ge`.Nathan Vegdahl2021-08-04
| | | | Resolves #529.
* Add ctrl-z to suspendIvan Tham2021-08-03
|
* Fixes for new clippy lints in Rust 1.54.Nathan Vegdahl2021-07-29
|
* Fix goto line numberGokul Soumya2021-07-28
| | | | Regression from #454. Go to line 10 with `10gg` or `10G`.
* Show pending keys in status line (#515)Gokul Soumya2021-07-28
| | | | | * Show pending keys and counts in status line * Refactor pending key display
* Allow multi key remappings in config file (#454)Gokul Soumya2021-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use tree like structure to store keymaps * Allow multi key keymaps in config file * Allow multi key keymaps in insert mode * Make keymap state self contained * Add keymap! macro for ergonomic declaration * Add descriptions for editor commands * Allow keymap! to take multiple keys * Restore infobox display * Fix keymap merging and add infobox titles * Fix and add tests for keymaps * Clean up comments and apply suggestions * Allow trailing commas in keymap! * Remove mode suffixes from keymaps * Preserve order of keys when showing infobox * Make command descriptions smaller * Strip infobox title prefix from items * Strip infobox title prefix from items
* Added change_case command (#441)Cor Peters2021-07-16
| | | | | | | | | | | | | | | | | * Added change_case command * Added switch_to_uppercase and switch_to_lowercase Renamed change_case to switch_case. * Updated the Keymap section of the Book * Use flat_map instead of map + flatten * Fix switch_to_uppercase using to_lowercase * Switched 'Alt-`' to uppercase and '`' to lowercase Co-authored-by: Cor <prive@corpeters.nl>
* Removed double entry of extend_lineCor2021-07-15
|
* Remove outdated commentBlaž Hrastnik2021-07-05
|
* Implement `X` as extend selection to line boundsBlaž Hrastnik2021-07-05
|
* Goto mode use infoboxIvan Tham2021-07-04
| | | | | In the meantime, change gm to gc. Remove extra space in mode title.