aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
Commit message (Collapse)AuthorAge
* 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.
* Reduce calculation and improve pattern in infoboxIvan Tham2021-07-04
| | | | | | - switch to use static OnceCell to calculate Info once - pass Vec<(&[KeyEvent], &str)> rather than Vec<(Vec<KeyEvent>, &str)> - expr -> tt to allow using | as separator, make it more like match
* Suggestions for infobox changesIvan Tham2021-07-04
| | | Co-authored-by: Benoît Cortier <benoit.cortier@fried-world.eu>
* Add infoboxIvan Tham2021-07-04
|
* Remove #[allow(unused)] from helix-term, and fix unused imports.Nathan Vegdahl2021-07-02
| | | | Lots of other warning still left. Will address in subsequent commits.
* Incorporate long word commands into keymapPabloMansanet2021-06-29
|
* reverse the dependency between helix-tui and helix-view (#366)Keith Simmons2021-06-25
| | | | | | | | | * reverse the dependency between helix-tui and helix-view by moving a fiew types to view * fix tests * clippy and format fixes Co-authored-by: Keith Simmons <keithsim@microsoft.com>
* Fix previous broken refactor key into helix-viewIvan Tham2021-06-24
| | | | | | | | Need to be used for autoinfo Revert "Revert "Refactor key into helix-view"" This reverts commit 10f9f72232f5789323d689bf0f9cd359715770d6.
* Rename surround to match_modeGokul Soumya2021-06-22
|
* Handle line endings correctly in surroundGokul Soumya2021-06-22
|
* Add surround keybindsGokul Soumya2021-06-22
|
* Merge `x` and `X`Blaž Hrastnik2021-06-20
|
* Revert "Refactor key into helix-view"Blaž Hrastnik2021-06-19
| | | | | | Did not use defaults when custom keymap was used This reverts commit ca806d4f852e934651132fc9570a6110e30f646d.
* Make `home` and `end` work in insert modewojciechkepka2021-06-19
|
* Refactor key into helix-viewIvan Tham2021-06-19
| | | | Now also make use of Deserialize for Config.
* Make arrow keys and page up/down work in insert modewojciechkepka2021-06-19
|
* Configurable keys 2 (Mapping keys to commands) (#268)PabloMansanet2021-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add convenience/clarity wrapper for Range initialization * Add keycode parse and display methods * Add remapping functions and tests * Implement key remapping * Add remapping book entry * Use raw string literal for toml * Add command constants * Make command functions private * Map directly to commands * Match key parsing/displaying to Kakoune * Formatting pass * Update documentation * Formatting * Fix example in the book * Refactor into single config file * Formatting * Refactor configuration and add keymap newtype wrappers * Address first batch of PR comments * Replace FromStr with custom deserialize
* Refactor keymap definitions using macrosGokul Soumya2021-06-14
| | | | | Adds a macro rule to the `key!` macro so that keymaps using `Left`, `Home`, `Esc`, etc. will also be accepted.