aboutsummaryrefslogtreecommitdiff
path: root/helix-term
Commit message (Collapse)AuthorAge
* Release 0.6Blaž Hrastnik2022-01-04
|
* scroll: change only main selection, only when needed (#1420)Mathis Brossier2022-01-03
| | | Co-authored-by: mathis <mathis.brossier@universite-paris-saclay.fr>
* Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes (#1414)Omnikar2022-01-03
| | | | | * Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes * `cargo xtask docgen`
* Add basic indentation for languages without treesitter-based indentation ↵Triton1712022-01-03
| | | | | | | rules (always use the indent of the current line for a new line). (#1341) Fix several bugs in the treesitter indentation calculation. Co-authored-by: Triton171 <triton0171@gmail.com>
* switch redundant current! usage to doc! (#1416)Kirawi2022-01-03
|
* Detect workspace root using language markers (#1370)Alexis Mousset2021-12-31
| | | | | | | | | | | | | | | | * Detect workspace root using language markers * Avoid allocating root_markers * Update helix-core/src/lib.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Update helix-core/src/lib.rs Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com>
* Don't just filter commands by fuzzy match, also order the matchesBlaž Hrastnik2021-12-30
|
* Convert Windows style path separator in completers to Unix style (#1389)ath32021-12-29
|
* Fix: when goto normal mode, only want to remove indentation if the line is ↵WindSoilder2021-12-29
| | | | | | | blank with no text following (#1349) * when opened new line contains other characters after current position, don't dedent * abstract checking logic
* Use a fuzzy matcher for commands (#1386)Stuart Hinson2021-12-29
| | | | | | | * Use a fuzzy matcher for commands * Take Clippy up on its suggestion * Rescope FUZZY_MATCHER
* feat(commands): ensure_selections_forward (#1393)Matouš Dzivjak2021-12-29
| | | | | | | | | | | | | * feat(commands): ensure_selections_forward Add command that ensures that selections are in forward direction. Fixes: https://github.com/helix-editor/helix/issues/1332 * Add keybinding for ensure_selections_forward Add `A-:` keybinding for the ensure_selections_forward command. * Re-use range.flip for flip_selections command
* Fix indentation (#1387)Omnikar2021-12-27
|
* feat(commands): sort command (#1288)Matouš Dzivjak2021-12-27
| | | | | | | | | | | * feat(commands): sort/rsort command Add basic implementation of sort command. * Sort by selections instead, implement reverse sort * Generate docs * Rename sort! to rsort
* Extract macro parsing to `helix-view` and add unit testsOmnikar2021-12-27
|
* Change how macros separate keypressesOmnikar2021-12-27
| | | | | | * Keypresses are no longer separated by spaces * Single-character keypresses are serialized as-is * Multi-character keypresses are delimited by `<>`
* Update macro display as [q] in messageIvan Tham2021-12-27
|
* Mark macros as experimental in docsIvan Tham2021-12-27
| | | | | Given that currently macro does not integrate well with registers and the internal representation of macros is expected to be changed.
* Rename play macro to replay macroIvan Tham2021-12-27
| | | | | Macro needs to be defined first before playing so replay is more accurate. Also, replay have the same length as record which makes it looks nice.
* Improve macro error handlingIvan Tham2021-12-27
|
* Switch macro Q and qIvan Tham2021-12-27
|
* Update settings at runtime (#798)Tamo2021-12-26
| | | | | | | | | | | | | | | * feat: Update settings at runtime fix the clippy warning * update the documentation * use to_value instead of to_vec+from_value * drop the equal * remove an useless comment * apply suggestion
* feat(ui): file encoding in statusline (#1355)Matouš Dzivjak2021-12-25
| | | | | | | | | | | * feat(ui): file encoding in statusline Display file encoding in statusline if the encoding isn't UTF-8. * Re-export encoding_rs from core From there it can be imported by other mods that rely on it.
* Resolve completion item (#1315)Gabriel Berto2021-12-25
| | | Co-authored-by: Gabriel Berto <gabriel.berto@pottencial.com.br>
* feat(lsp): configurable diagnostic severity (#1325)Matouš Dzivjak2021-12-25
| | | | | | | | | | | | | | | | * feat(lsp): configurable diagnostic severity Allow severity of diagnostic messages to be configured. E.g. allow turning of Hint level diagnostics. Fixes: https://github.com/helix-editor/helix/issues/1007 * Use language_config() method * Add documentation for diagnostic_severity * Use unreachable for unknown severity level * fix: documentation for diagnostic_severity config
* Truncate the start of file paths in the StatusLine (#1351)BB2021-12-25
| | | | | | | * Truncate the start of file paths in the StatusLine * cargo fmt Co-authored-by: Bódi Balázs <97936@4ig.hu>
* LSP code action commands (#1304)Matouš Dzivjak2021-12-21
| | | | | | | | | * feat(lsp): codeAction commands * Don't block on command call * Fix lifetime of command execution * Fix lint issues
* Improve dedent behavior (#1232)WindSoilder2021-12-21
| | | | | | | | | | | | | | | | | | | | | * tmp add code for dedent * finish normal_mode with dedent behavior * use function pointer * rebase from origin * check dedent condition inside normal_mode implementation * using if let... * fix check * using char_is_whitespace instead of ch.is_whitespace * fix clippy * abstract restore_indent function
* build(deps): bump once_cell from 1.8.0 to 1.9.0 (#1322)dependabot[bot]2021-12-20
| | | | | | | | | | | | | | | | | Bumps [once_cell](https://github.com/matklad/once_cell) from 1.8.0 to 1.9.0. - [Release notes](https://github.com/matklad/once_cell/releases) - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.8.0...v1.9.0) --- updated-dependencies: - dependency-name: once_cell dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Change text for gg to explain <n>gg (#1287)Ivan Tham2021-12-18
|
* Apply recent nightly suggestions (#1286)Kirawi2021-12-18
| | | array iterators are now implicit
* Allow paste commands to take a count (#1261)Omnikar2021-12-14
| | | | | | | * Allow paste commands to take a count * Call `.repeat` within iterator methods * Implement counts for paste-replace
* Fix panic when scrolling through completion popup (#1260)Midnight Exigent2021-12-14
| | | | | | | * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Add auto pairs for same-char pairs (#1219)Skyler Hawthorne2021-12-13
| | | | | | | | | | | | | | | * Add auto pairs for same-char pairs * Add unit tests for all existing functionality * Add auto pairs for same-char pairs (quotes, etc). Account for apostrophe in prose by requiring both sides of the cursor to be non-pair chars or whitespace. This also incidentally will work for avoiding a double single quote in lifetime annotations, at least until <> is added * Slight factor of moving the cursor transform of the selection to inside the hooks. This will enable doing auto pairing with selections, and fixing the bug where auto pairs destroy the selection. Fixes #1014
* Add ui.gutter to theme all gutters (i.e. set bg)Blaž Hrastnik2021-12-13
|
* Assume true color support on WindowsOmnikar2021-12-13
|
* Load alt default theme if true color is not supportedOmnikar2021-12-13
| | | | | | | | | | | | | | | | | | | | * Move `runtime/themes/base16_default_terminal.toml` to `base16_theme.toml` alongside `theme.toml` * Use `terminfo` crate to detect whether the terminal supports true color and, if the user has no theme configured and their terminal does not support true color, load the alt default theme instead of the normal default. Remove `terminfo` dependency, use `COLORTERM` env instead Prevent user from switching to an unsupported theme Add `true-color-override` option If the terminal is wrongly detected to not support true color, `true-color-override = true` will override the detection. Rename `true-color-override` to `true-color`
* minor: Shorten goto file(s) descriptionsBlaž Hrastnik2021-12-13
|
* Macros (#1234)Omnikar2021-12-12
| | | | | | | | | | | | | | | | | | | | | | | | * Macros WIP `helix_term::compositor::Callback` changed to take a `&mut Context` as a parameter for use by `play_macro` * Default to `@` register for macros * Import `KeyEvent` * Special-case shift-tab -> backtab in `KeyEvent` conversion * Move key recording to the compositor * Add comment * Add persistent display of macro recording status When macro recording is active, the pending keys display will be shifted 3 characters left, and the register being recorded to will be displayed between brackets — e.g., `[@]` — right of the pending keys display. * Fix/add documentation
* Open files with spaces in filename, allow opening multiple files (#1231)ath32021-12-12
|
* ui: popup: Don't allow scrolling past the end of contentBlaž Hrastnik2021-12-10
|
* Add `save_selection` command (#1247)Omnikar2021-12-10
|
* Add `default-run = "hx"` to `helix-term/Cargo.toml` (#1244)Omnikar2021-12-10
| | | | | Following the addition of `xtask`, `cargo run` has multiple possible targets, necessitating the usage of `cargo run --bin hx` to run Helix during development. This allows `cargo run` to be used to run `hx`.
* Only use a single documentation popup (#1241)Kirawi2021-12-08
|
* docs: Auto generate command listGokul Soumya2021-12-08
|
* Make kill_to_line_end behave like emacs (#1235)WindSoilder2021-12-06
|
* fix: Normalize backtab into shift-tabBlaž Hrastnik2021-12-06
| | | | Fixes #1150
* Small changeJason Rodney Hansen2021-12-05
|
* Don't increment for overlapping changesJason Rodney Hansen2021-12-05
|
* CleanupJason Rodney Hansen2021-12-05
|
* Add support for time and more date formatsJason Rodney Hansen2021-12-05
|