aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
Commit message (Collapse)AuthorAge
* Handle non-UTF8 filesShafkath Shuhan2021-06-23
|
* Fix extend_line() behavior.Nathan Vegdahl2021-06-23
| | | | | | It would always extend to the next line if the cursor was at the end of the current line, even if the current line wasn't fully selected yet.
* Missed some items in the CRLF PR.Nathan Vegdahl2021-06-23
|
* Fix build on masterBlaž Hrastnik2021-06-23
|
* Make the prompt callback take a Context.Joe Neeman2021-06-23
|
* Implement show_current_directory commandLionel Flandrin2021-06-22
|
* Implement change_current_directory commandLionel Flandrin2021-06-22
|
* minor: Remove old TODOsBlaž Hrastnik2021-06-22
|
* Rename surround to match_modeGokul Soumya2021-06-22
|
* Add documentation for surroundGokul Soumya2021-06-22
|
* Handle line endings correctly in surroundGokul Soumya2021-06-22
|
* Move match_bracket to mmGokul Soumya2021-06-22
|
* Add surround keybindsGokul Soumya2021-06-22
|
* Merge pull request #224 from helix-editor/line_ending_detectionBlaž Hrastnik2021-06-22
|\ | | | | Line ending detection
| * Add command to set the document's default line ending.Nathan Vegdahl2021-06-21
| |
| * Fix clippy warnings.Nathan Vegdahl2021-06-21
| |
| * Convert remaining commands to use the document's line ending setting.Nathan Vegdahl2021-06-21
| |
| * Make split_selection_on_newline command handle all line endings.Nathan Vegdahl2021-06-21
| |
| * Update `replace` command to use document line ending setting.Nathan Vegdahl2021-06-21
| |
| * Add function to get the line ending of a str slice.Nathan Vegdahl2021-06-21
| | | | | | | | This is needed in some places.
| * Don't need getters/setters for line_ending property.Nathan Vegdahl2021-06-21
| | | | | | | | | | It's plain-old-data. If we want to do fancier things later, it's easy to switch back.
| * Merge branch 'master' of github.com:helix-editor/helix into ↵Nathan Vegdahl2021-06-20
| |\ | | | | | | | | | | | | | | | | | | line_ending_detection Rebasing was making me manually fix conflicts on every commit, so merging instead.
| * | Work on moving code over to LineEnding instead of assuming '\n'.Nathan Vegdahl2021-06-20
| | | | | | | | | | | | Also some general cleanup and some minor fixes along the way.
| * | added the line_end helper functionJan Hrastnik2021-06-20
| | |
| * | changed some hardcoded newlines, removed a else if in line_ending.rsJan Hrastnik2021-06-19
| | |
| * | fix merge issueJan Hrastnik2021-06-19
| | |
| * | Merge remote-tracking branch 'origin/master' into line_ending_detectionJan Hrastnik2021-06-19
| |\ \
| * | | ran cargo fmtJan Hrastnik2021-06-19
| | | |
| * | | added get_line_ending from pr commentJan Hrastnik2021-06-19
| | | |
| * | | applied changes from pr reviewJan Hrastnik2021-06-17
| | | |
| * | | fixed some problems from rebasingJan Hrastnik2021-06-16
| | | |
| * | | doc.line_ending() now returns &'static strJan Hrastnik2021-06-16
| | | |
| * | | trying out line ending helper functions in commands.rsJan Hrastnik2021-06-16
| | | |
* | | | Add progress spinners to status linewojciechkepka2021-06-21
| |_|/ |/| |
* | | Fix build..Blaž Hrastnik2021-06-20
| | |
* | | Merge `x` and `X`Blaž Hrastnik2021-06-20
| | |
* | | Add mappable commands for system clipboardBenoît CORTIER2021-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | System clipboard integration exists now in two favors: typable and mappable. Default mappings are: - SPC p: paste clipboard after - SPC P: paste clipboard before - SPC y: join and yank selection to clipboard - SPC Y: yank main selection to clipboard - SPC R: replace selections by clipboard contents
* | | Add system clipboard yank and paste commandsBenoît CORTIER2021-06-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes https://github.com/helix-editor/helix/issues/76
* | | Add `:theme <name>` commandwojciechkepka2021-06-19
| | |
* | | Revert "Refactor key into helix-view"Blaž Hrastnik2021-06-19
| |/ |/| | | | | | | | | Did not use defaults when custom keymap was used This reverts commit ca806d4f852e934651132fc9570a6110e30f646d.
* | Refactor key into helix-viewIvan Tham2021-06-19
| | | | | | | | Now also make use of Deserialize for Config.
* | Fix indent regression issue with o, OGokul Soumya2021-06-18
| | | | | | | | | | | | | | Indents were no longer respected with `o` and `O`. Using counts resulted in multiple cursors in the same line instead of cursors on each line. Introduced by 47d2e3ae
* | Add `work_done_token` as parameter to lsp methodswojciechkepka2021-06-18
| |
* | Fix expansion of `~` (#284)Wojciech Kępka2021-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix expansion of `~`, dont use directory relative to cwd. * Add `expand_tilde` * Bring back `canonicalize_path`, use `expand_tilde` to `normalize` * Make `:open ~` completion work * Fix clippy * Fold home dir into tilde in Document `realitve_path`
* | Replace `Editor::current` by a macroBenoît CORTIER2021-06-18
| | | | | | | | | | | | | | | | | | This is necessary to workaround ownership issues across function calls. The issue notably arised when implementing the registers into `Editor` and I was getting annoyed again when implementing copy/pasting into system clipboard. The problem is addressed by using macro calls instead of function calls. There is no notable side effect.
* | 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
* | Let o, O take counts for multiple cursorsGokul Soumya2021-06-17
| |
* | Fix cursor position bugs related to o and OGokul Soumya2021-06-17
|/ | | | | | | - `O` at the beginning of file didn't move cursor - `o` and `O` messed up cursor position with multiple cursors Fixes #127
* Remove RwLock for registersBenoît CORTIER2021-06-15
| | | | | | | | Registers are stored inside `Editor` and accessed without `RwLock`. To work around ownership, I added a sister method to `Editor::current`: `Editor::current_with_context`. I tried to modify `Editor::current` directly but it's used at a lot of places so I reverted into this for now at least.
* Use `_impl` suffix instead of `_` prefixBenoît CORTIER2021-06-15
| | | | | | Helpers / internal implementations where using the `_` prefix. However, this prefix also suppress unused warnings. I suggest we use the `_impl` suffix instead.