aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
Commit message (Collapse)AuthorAge
...
| * Fix typo in comment.Nathan Vegdahl2021-07-29
| |
| * Fix bug with `/` searching after non-ascii characters.Nathan Vegdahl2021-07-28
| | | | | | | | | | Forgot to convert from char indices to byte indices before passing to the regex engine.
| * Enforce cursor/selection invariants in one place.Nathan Vegdahl2021-07-28
| | | | | | | | Rather than per-command like before.
| * Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-28
| |\
| * \ Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-26
| |\ \
| * | | Start searches at the right side of the block cursor.Nathan Vegdahl2021-07-26
| | | |
| * | | Collect some common patterns into methods on `Range`.Nathan Vegdahl2021-07-26
| | | |
| * | | Switch to a cleaner range-head moving abstraction.Nathan Vegdahl2021-07-24
| | | | | | | | | | | | | | | | Also fix a bunch of bugs related to it.
| * | | Fixed find_till_char and find_char commands.Nathan Vegdahl2021-07-24
| | | | | | | | | | | | | | | | | | | | They worked correctly when extending, but not for normal cursor movement.
| * | | Fix surround replace command replacing the wrong position on the right.Nathan Vegdahl2021-07-24
| | | |
| * | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-24
| |\ \ \
| * | | | Put selection in separate variable in commands code.Nathan Vegdahl2021-07-24
| | | | |
| * | | | Fix append mode, and make insertion always happen at head of range.Nathan Vegdahl2021-07-23
| | | | |
| * | | | Calculate the line that the range head is on correctly.Nathan Vegdahl2021-07-22
| | | | |
| * | | | Use `Range::line_range()` in some more places I missed.Nathan Vegdahl2021-07-22
| | | | |
| * | | | Fix append mode not editing correctly.Nathan Vegdahl2021-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | This is currently a bit of a hack, and still doesn't behave quite how we probably want. Left a TODO.
| * | | | Fix yank not working with internally zero-width ranges.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Fixes for misc bugs with view movement.Nathan Vegdahl2021-07-21
| | | | |
| * | | | Use new `Range::line_range()` method in more places, as appropriate.Nathan Vegdahl2021-07-20
| | | | |
| * | | | Fix various bugs related to goto-end-of-line command.Nathan Vegdahl2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | This also fixes a bug with `Selection::normalize()`, that could result in an out-of-bounds primary index.
| * | | | Fix line-wise `p` pasting before the current line instead of after.Nathan Vegdahl2021-07-20
| | | | |
| * | | | Make search work a little nicer when there are already selections.Nathan Vegdahl2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, if you have text like "aaaaaaaaa" and you search for "a", the new behavior will actually progress through all of the "a"s, whereas the previous behavior would be stuck on a single one.
| * | | | Fix extend line behavior.Nathan Vegdahl2021-07-20
| | | | |
| * | | | Fixed primary cursor position calculation to use 1-width semantics.Nathan Vegdahl2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | This had a bunch of knock-on effects that were buggy, such as bracket match highlighting.
| * | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-19
| |\ \ \ \
| * | | | | Update word selection/navigation to work with gap indexing.Nathan Vegdahl2021-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also tweaked some of the existing behavior that seemed inconsistent and/or buggy. It's mostly identical, just a few corner cases are different.
| * | | | | Update extend_line command to work with gap indexing.Nathan Vegdahl2021-07-17
| | | | | |
| * | | | | Update change-case commands to work with gap indexing.Nathan Vegdahl2021-07-17
| | | | | |
| * | | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-17
| |\ \ \ \ \
| * | | | | | Update surround commands to work with gap indexing.Nathan Vegdahl2021-07-08
| | | | | | |
| * | | | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-06
| |\ \ \ \ \ \
| * | | | | | | Make horizontal selection movement work properly.Nathan Vegdahl2021-07-02
| | | | | | | |
| * | | | | | | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-02
| |\ \ \ \ \ \ \
| * | | | | | | | Ensure a minimum selection width on commands that need it.Nathan Vegdahl2021-07-01
| | | | | | | | |
| * | | | | | | | Make `Selection`'s normalize and transform methods self-consuming only.Nathan Vegdahl2021-07-01
| | | | | | | | |
| * | | | | | | | Clean up `Selection` to not use so many allocations.Nathan Vegdahl2021-07-01
| | | | | | | | |
* | | | | | | | | Refactor case where key event is solely a characterGokul Soumya2021-07-29
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Fix goto line numberGokul Soumya2021-07-28
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Regression from #454. Go to line 10 with `10gg` or `10G`.
* | | | | | | 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
* | | | | | | Implement in-memory prompt historyBlaž Hrastnik2021-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation is similar to kakoune: we store the entries into a register.
* | | | | | | fix(term): undo-ing code actionsGokul Soumya2021-07-25
| | | | | | |
* | | | | | | fix(term): use existing implementation of edits_to_transactiongbaranski2021-07-25
| | | | | | |
* | | | | | | feat: code actions - document edits (#478)Grzegorz Baranski2021-07-24
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip: Code actions * fix(term): use current macro instead Context::context * feat(lsp): set code_action capabilities * feat(term): set SPC-a to code_action * feat(term): wip on applying code actions * deps: `cargo update` * feat(term): applying code actions edits * fix(term): cleanup of apply_edit * fix(term): applying edits as a whole thing instead one by one * refactor(term): move apply_edits below * fix(term): improve unimplemented messages for further investigation * fix(term): change code action command comment Co-authored-by: Ivan Tham <pickfire@riseup.net> * fix(term): add matching `}` * fix(term): cleanup, todo!() on workspace edit * fix(term): remove unrelated workspace_symbol_picker * fix(term): apply cargo-clippy suggestions * fix(term): replace todo!'s with editor.set_error Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* | | | | | Resume last pickerIvan Tham2021-07-22
| |_|_|_|/ |/| | | | | | | | | | | | | | Inspired by space ' in doom emacs.
* | | | | Made toggle_comments language dependent (#463)Cor Peters2021-07-18
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Made toggle_comments language dependent * Fixed Test Cases * Added clippy suggestion * Small Fixes * Clippy Suggestion Co-authored-by: Cor <prive@corpeters.nl>
* | | | 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>
* | | | Restore C-w shortcutBlaž Hrastnik2021-07-11
| | | |
* | | | Further simplify error handling in :commandsBlaž Hrastnik2021-07-11
| | | |
* | | | Make command implementation return a Result<()>Lionel Flandrin2021-07-11
| | | | | | | | | | | | | | | | The error message is displayed with cx.editor.set_error.
* | | | Add infobox for viewIvan Tham2021-07-11
| | | |