aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
Commit message (Collapse)AuthorAge
* 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 comment, statusline + commandline = 2wojciechkepka2021-06-20
|
* Use full screen sizewojciechkepka2021-06-20
|
* Make completion window move to top when cursor is below halfwojciechkepka2021-06-20
|
* ui: prompt: Add more keymappingsBlaž Hrastnik2021-06-20
|
* Re-export unicode crates from helix_coreBlaž Hrastnik2021-06-20
|
* ui: prompt: Better unicode supportBlaž Hrastnik2021-06-20
| | | | | We copied over eval_movement from wezterm, that already solves most of our problems. self.cursor is now byte-based.
* Add missing `theme` to toml configwojciechkepka2021-06-20
|
* Fix overflowwojciechkepka2021-06-19
|
* Fix compilationBlaž Hrastnik2021-06-19
|
* Add `:theme <name>` commandwojciechkepka2021-06-19
|
* Add `theme` to global configurationwojciechkepka2021-06-19
|
* Add theme completerwojciechkepka2021-06-19
|
* Add ability to change theme on editorwojciechkepka2021-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.
* 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
|
* Add `close_language_servers` method on `Editor`wojciechkepka2021-06-19
|
* Handle language server shutdown with timeoutwojciechkepka2021-06-19
|
* Add `ui.statusline.inactive`, use `ui.statusline` for statusline textwojciechkepka2021-06-18
|
* Don't derive `Default` for `GlobalConfig` (#297)Wojciech Kępka2021-06-18
| | | We shouldn't derive Default because `lsp_progress` by default should be turned on (opt out).
* 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
* Use kebab-case for configwojciechkepka2021-06-18
|
* Add an option to disable display of progress in status barwojciechkepka2021-06-18
|
* Handle workDoneProgress/create requestwojciechkepka2021-06-18
|
* Update handling of progress notificationwojciechkepka2021-06-18
|
* Add unique id to each lsp client/server pairwojciechkepka2021-06-18
|
* 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`
* Fix panic when entering unicode in command promptBenoît CORTIER2021-06-18
| | | | | | | It was attempted to use `String::insert` and `String::remove` to insert without taking care of unicodes. Fixes https://github.com/helix-editor/helix/issues/282
* 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
* Add theme key for selected line numberGokul Soumya2021-06-16
| | | | | | | | | | | Adds `ui.linenr.selected` which controls highlight of linu numbes which have cursors on. - Fallback to linenr if linenr.selected is missing - Update docs and themes - Add TODOs for themes with temporary linenr.selected
* Add cursor kind to separate hidden cursor from posIvan Tham2021-06-15
| | | | | Now IME cursor position should be correct since we can still set cursor position without drawing the cursor.
* 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.
* Remove unused variablesIvan Tham2021-06-15
|
* Add filter ability to pickerIvan Tham2021-06-15
| | | | Inspired by doom emacs. Able to filter picker options multiple times.
* Report indent style when calling indent-style with no arguments.Nathan Vegdahl2021-06-15
| | | | Also print an error message when the argument is malformed.
* Address PR comments.Nathan Vegdahl2021-06-15
| | | | | | * Clean up "indent-style" command argument parsing. * Adjust command's name to match the style of other commands. * Add a "0" alias to the command, for tabs indent style.
* Remove indent style status-line display for now.Nathan Vegdahl2021-06-15
|
* Implement command to change the indent-style setting of a document.Nathan Vegdahl2021-06-15
|
* Render indent-style status in status line.Nathan Vegdahl2021-06-15
| | | | Also cleaned up the status line code a little.
* Add ctrl-w for promptIvan Tham2021-06-14
|
* fix: wq/wqa functions need to wait for save to finish before closingBlaž Hrastnik2021-06-14
|