aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* add reflow command (#2128)Vince Mutolo2022-05-02
| | | | | | | | | | | | | | | | | | | | | | | * add reflow command Users need to be able to hard-wrap text for many applications, including comments in code, git commit messages, plaintext documentation, etc. It often falls to the user to manually insert line breaks where appropriate in order to hard-wrap text. This commit introduces the "reflow" command (both in the TUI and core library) to automatically hard-wrap selected text to a given number of characters (defined by Unicode "extended grapheme clusters"). It handles lines with a repeated prefix, such as comments ("//") and indentation. * reflow: consider newlines to be word separators * replace custom reflow impl with textwrap crate * Sync reflow command docs with book * reflow: add default max_line_len language setting Co-authored-by: Vince Mutolo <vince@mutolo.org>
* Auto-complete directory members (#1801) (#1907)Roland Kovacs2022-05-02
| | | | | | Allow tab-completion to continue when there is only a single, unambigous completion target which is a directory. This allows e.g. nested directories to be quickly drilled down just by hitting <tab> instead of first selecting the completion then hitting <enter>.
* Add run-shell-command for Commands (#1682)Ryosuke Hayashi2022-05-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add run_shell_command * docgen * fix command name Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * refactored Info::new * show 'Command failed' if execution fails * TypedCommand takes care of error handling and printing the error to the statusline. * docgen * use Popup instead of autoinfo * remove to_string in format! * Revert chage in info.rs * Show "Command succeed" when success * Fix info.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* feat(lang): Cpon lang support (#2355)Fanda Vacek2022-05-01
| | | Co-authored-by: Fanda Vacek <fvacek@elektroline.cz>
* num_cpus apparently unused in helix-termBlaž Hrastnik2022-05-01
|
* Add a nop clipboard provider for wasmBlaž Hrastnik2022-05-01
|
* helix-loader + helix-core now compile for WASMBlaž Hrastnik2022-05-01
|
* cargo xtask docgenBlaž Hrastnik2022-05-01
|
* Add Cairo supportBlaž Hrastnik2022-05-01
|
* feat(ui): add nbsp (non-breaking space) to rendered whitespace (#2322)unrelentingtech2022-04-30
|
* prevent rendering visible whitespace on trailing cursor (#2331)Michael Davis2022-04-30
|
* feat(ui): treat slashes as word separators in prompt (#2315)unrelentingtech2022-04-30
| | | | When fiddling with paths in a :o prompt, one usually would want Ctrl-W to erase a path segment rather than the whole path. This is how Ctrl-W works in e.g. (neo)vim out of the box.
* Add Night Owl Color Theme. (#2330)nosa2022-04-29
|
* feat(lang): add devicetree (Flattened Device Tree Source) (#2329)unrelentingtech2022-04-29
|
* fix(docs): cleanup obsolete indents.toml mentions (#2327)unrelentingtech2022-04-29
|
* change cursor for copy selection (#2323)Erasin2022-04-29
|
* Fix spelling errors in some themes (#2324)Yang Tang2022-04-29
|
* feat(lang): Update nickel to include "rec" keyword (#2320)Erin van der Veen2022-04-29
|
* Fix tests for surround primitivesGokul Soumya2022-04-29
|
* Support m in surround delete and replaceGokul Soumya2022-04-29
|
* Add `m` textobject to select closest surround pairGokul Soumya2022-04-29
|
* Change A-left right to C-left right in insert (#2193)Ivan Tham2022-04-29
| | | | | | Currently A-left move one word left and the behavior will be more consistent for people coming GUI world if the key was changed to control given that both browsers and editors like vscode uses C-left right by default to move word rather than alt.
* Make A-hjkl tree-sitter nav A-pion (#2205)Ivan Tham2022-04-29
| | | | | | | | | | | A-hl currently is not very consistent with hl when next object is selected, since it may go up/down or left/right and this behavior is confusing such that some people think it should swap the keys with A-jk, so it is better to use A-pn since that only specifies two direction. A-jk have the same issue as in it usually moves right and is not consistent with the behavior of jk so people may think A-hl is better, maybe A-oi is better here since A-hl will be swapped to A-pn, A-oi can convey the meaning of in and out, similar to some window manager keys?
* Extend tutor file (#2133)nosa2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds tutorial sections for multiple areas including: - Changing selections to uppercase / lowercase - yanking and pasting - macros - selecting to chars with t and f PS: I got kind of carried away and put off commiting for a while, will commit to commit more often in the future. * Changed section titles to all uppercase * Added recap and section about jumplist * Added sections for searching in file, joining lines and indenting lines. * Removed some trailing whitespace * Evened out the space between sections to all be 5 lines * Add section on opening lines (o) and recap * Changed the amount of lines between sections This is so that - on a 24 line terminal - only one section is visible at a time and page up/page down goes straight to the next section keeping the header at the top. * Punctuation error Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Punctuation error Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Spelling error Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Remove unnecessary word Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Reword note about searches Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Change word Co-authored-by: Omnikar <omkar.subramaniam@icloud.com> * Update tutor file * Made some small changes suggested by Omnikar * Added better demo for macros. * Small changes - Add newlines at the end - Make "MACROS" section fit into 22 lines - Correct mistake of saying helix copied to clipboard in "COPYING AND PASTING TEXT" * Reformatted notes in copying/pasting section to fit in screen * Add a note about n and N and their difference to Vim. * Combine f and t commands into one section. * Removed t/T section which was merged into the f/F section. * Merge sections on manipulating case into one. * Gave section's numbers * Convert 'press' to 'type' in some places * Added examples of how prompt lines should look. * Reformatted notes in copy/pasting section. * More rewording to more comfortably fit sections on screen. * Grammatical error. * Missing periods. * Missing capital + small reformat * Fix mis-numbered section * Reworded to use these conventions when referring to inputs: - "Press" for single keypresses - "Type" for multiple keypresses / modifiers - "Use" when referencing two inputs as a pair. * till not 'til * Say 'press' instead of 'type' when referring to symbols * 'outdent' not 'unindent' * Typo and grammar. * Replace all 'press's with 'type's (apart from places it would make no sense in). * Improve examples for joining and indenting lines. * Section alignment. Co-authored-by: Omnikar <omkar.subramaniam@icloud.com>
* Wrap current directory picker with overlay widget (#2308)CossonLeo2022-04-28
|
* fix typos (#2304)chunghha2022-04-27
|
* feat(lsp): add toml lsp (#2302)Alexis Kalabura2022-04-27
|
* Add ui.virtual theme scopes for onedark themeGokul Soumya2022-04-27
|
* feat(commands): better handling of buffer-close (#1397)Matouš Dzivjak2022-04-27
| | | | | | | | | | | | | | | | | | | * feat(commands): better handling of buffer-close Previously, when closing buffer, you would loose cursor position in other docs. Also, all splits where the buffer was open would be closed. This PR changes the behavior, if the view has also other buffer previously viewed it switches back to the last one instead of the view being closed. As a side effect, since the views are persisted, the cursor history is persisted as well. Fixes: https://github.com/helix-editor/helix/issues/1186 * Adjust buffer close behavior * Remove closed documents from jump history * Fix after rebase
* Add onelight theme variant (#2287)Erasin2022-04-27
|
* feat(lang): add hare language support (#2289)meak2022-04-26
| | | Co-authored-by: Mehdi Katranji <hello@mek.yt>
* Fix paste direction for typed paste commands (#2288)Michael Davis2022-04-26
|
* Fix base16_terminal theme using incorrect ansi-color (#2279)Tomas Roos2022-04-26
|
* build(deps): bump anyhow from 1.0.56 to 1.0.57 (#2273)dependabot[bot]2022-04-26
| | | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.56 to 1.0.57. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.56...1.0.57) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Autumn theme: improve markup highlighting (#2270)Jens Getreu2022-04-25
| | | Co-authored-by: Jens Getreu <jens.getreu@dlh.lu>
* Fix typo (#2264)Lucy2022-04-25
|
* register publish_diagnostics client capability (#2241)matt rice2022-04-25
|
* feat(lsp): add vala language support (#2243)ttys32022-04-24
|
* Add Pop-Dark Theme (#2189)workingj2022-04-24
|
* Add :get-option command (#2231)Daniel2022-04-24
|
* Rename paragraph motion commands from move to goto (#2226)Michael Davis2022-04-24
| | | | | * fix command name for next/prev paragraph motion * rename move_next/prev_paragraph to goto_next/prev_paragraph
* fix(lsp): divide hcl into seperate languages (#2244)Lukas2022-04-23
|
* Add tokyonight_storm theme variant (#2240)Paul Graydon2022-04-23
|
* feat(lsp): add yaml lsp (#2234)Lukas2022-04-23
|
* Only merge top-level array when merging `languages.toml` (#2215)Michael Davis2022-04-23
| | | | | | | * Revert "Revert "override nested arrays when merging TOML (#2145)"" This reverts commit 35d2693630a4ec29a654704bc4be47badb8d6070. * flip top-level table merging flag
* chore(lsp): check rename capabilities before send rename action (#2203)ttys32022-04-23
|
* Fix ctrl-u on insert behavior (#1957)Ivan Tham2022-04-23
| | | | | | | | | | * Fix ctrl-u on insert behavior Now should follow vim behavior more - no longer remove text on cursor - no longer remove selected text while inserting - first kill to start non-whitespace, start, previous new line * Add comment for c-u parts
* Replace line endings using `set_line_ending` command (#1871)Kirawi2022-04-23
| | | | | | | * set_line_ending: now replace line endings * use ending.len_chars() directly * account for unicode-lines feaure in line-ending doc
* feat(lang): add nushell language support (#2225)Justin Ma2022-04-22
| | | Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
* Add `autumn` theme (#2212)Jens Getreu2022-04-22
| | | Co-authored-by: Jens Getreu <jens.getreu@dlh.lu>