aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-26
|\
| * 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
| * fix: change primary cursor color in bogster themegbaranski2021-07-26
| |
| * Fix append newline indentIvan Tham2021-07-26
| | | | | | | | Fix #492
| * Implement in-memory prompt historyBlaž Hrastnik2021-07-26
| | | | | | | | | | Implementation is similar to kakoune: we store the entries into a register.
| * rust: Indent multi line call expressions one level deeperBlaž Hrastnik2021-07-26
| |
| * Improve rust indentation queriesBlaž Hrastnik2021-07-26
| | | | | | | | | | if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far.
| * Determine whether to use a margin of 0 or 1 when uncommenting (#476)Omnikar2021-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement `margin` calculation for uncommenting * Move `margin` calculation to `find_line_comment` * Fix comment bug with multiple selections on a line * Fix `find_line_comment` test for new return type * Generate a single vec of lines for comment toggle `toggle_line_comments` collects the lines covered by all selections into a `Vec`, skipping duplicates. `find_line_comment` now returns the lines to operate on, instead of returning the lines to skip. * Fix test for `find_line_comment` * Reserve length of `to_change` instead of `lines` The length of `lines` includes blank lines which will be skipped, and as such do not need space for a change reserved for them. `to_change` includes only the lines which will be changed. * Use `token.chars().count()` for token char length * Create `changes` with capacity instead of reserving * Remove unnecessary clones in `test_find_line_comment` * Add test case for 0 margin comments * Add comments explaining `find_line_comment`
| * fix(term): undo-ing code actionsGokul Soumya2021-07-25
| |
| * fix(term): use existing implementation of edits_to_transactiongbaranski2021-07-25
| |
| * build(nix): fix build issuesYusuf Bera Ertan2021-07-25
| |
| * Add missing keybinds to docsGokul Soumya2021-07-24
| |
| * 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>
* | Address some PR comments.Nathan 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
|\|
| * Simplify replace dashes with underscoreIvan Tham2021-07-23
| |
| * fix: ui/menu: Don't allow scrolling past the end of completionBlaž Hrastnik2021-07-23
| | | | | | | | Fixes #472
| * Add rustfmt.toml to force formatting to use rustfmt defaultsBlaž Hrastnik2021-07-23
| | | | | | | | Closes #480
| * fix: Only try expanding directory completion if it makes senseBlaž Hrastnik2021-07-23
| | | | | | | | Fixes #487
| * Simplify ui/menu.rsBlaž Hrastnik2021-07-23
| |
| * mark reloaded buffers as unchangedShafkath Shuhan2021-07-23
| |
| * The item `fmt` was imported redundantlyfossdd2021-07-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed warning: ``` warning: the item `fmt` is imported redundantly --> helix-core/src/syntax.rs:98:9 | 16 | fmt, | --- the item `fmt` is already imported here ... 98 | use std::fmt; | ^^^^^^^^ | ```
| * Resume last pickerIvan Tham2021-07-22
| | | | | | | | Inspired by space ' in doom emacs.
| * Update dark_plus.tomlKirawi2021-07-21
| | | | | | Corrects primary selection color and makes matching cursor easier to spot.
* | 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
| |
* | Fix ocassional panic when matching brackets.Nathan Vegdahl2021-07-23
| |
* | Revert display-width-based vertical cursor movement.Nathan Vegdahl2021-07-22
| | | | | | | | Still needs to be done, but should be part of a separate PR.
* | 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
| |
* | Fix selections not being modified quite correctly with text edits.Nathan Vegdahl2021-07-21
| |
* | Don't insert a final line ending on file load/reload.Nathan Vegdahl2021-07-21
| |
* | Fixes for misc bugs with view movement.Nathan Vegdahl2021-07-21
| |
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-20
|\|
| * Fix typoIvan Tham2021-07-20
| |
| * Fixes toggle_comment not finding the correct language comment tokenLuctius2021-07-20
| |
| * Bump tokio from 1.8.1 to 1.8.2dependabot[bot]2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.8.1 to 1.8.2. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.8.1...tokio-1.8.2) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | Use new `Range::line_range()` method in more places, as appropriate.Nathan Vegdahl2021-07-20
| |
* | Fix comment toggle command also sometimes toggling the next line.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
| |
* | Fix incorrect line hihglight when a selection is at the end of a line.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.