aboutsummaryrefslogtreecommitdiff
path: root/book
Commit message (Collapse)AuthorAge
...
* | | Add LLVM TableGen highlighting (#1409)Sebastian Neubauer2022-01-03
| | | | | | | | | | | | | | | | | | | | | Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | add tree-sitter-git-rebase (#1402)Michael Davis2021-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-rebase, add to languages * add basic highlights query * inject bash in execute statements * update tree-sitter-rebase * tree-sitter-rebase->tree-sitter-git-rebase * get injection working with tree-sitter-git-commit * set scope under source.gitrebase * unset include-children on commit message injections * Revert "unset include-children on commit message injections" This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944. * fix generated language docs * use rebase_command scopes from tree-sitter-git-commit
* | | Add tree-sitter-git-diff (#1373)Michael Davis2021-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
* | | Improve llvm highlighting and queries (#1388)Sebastian Neubauer2021-12-29
| | | | | | | | | | | | | | | | | | | | | | | | * Improve llvm highlighting and queries The llvm tree-sitter parser was updated to support scopes and more accurate highlighting. * Group highlight expressions better
* | | 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
* | | Add ruby indents (#1372)Stuart Hinson2021-12-27
| | | | | | | | | | | | | | | * Add ruby indents * Include ruby in generated docs
* | | 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.
* | | 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
* | | tree-sitter-gitcommit->tree-sitter-git-commitMichael Davis2021-12-25
| | |
* | | add new scopes to themes docsMichael Davis2021-12-25
| | |
* | | add gitcommit grammar and language configurationMichael Davis2021-12-25
| | |
* | | Add textobjects and indents to cmake (#1307)Sebastian Neubauer2021-12-25
| | |
* | | 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
* | | Support dockerfiles (#1303)Midnight Exigent2021-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs * feat(languages): Add support for `Dockerfile`s * docs(cargo-xtask-docgen): * improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for `Dockerfile` * improvement(langs-dockerfile): Add injections.scm * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | docs: Add note about tree-sitter query precedence (#1314)Gokul Soumya2021-12-21
| | |
* | | Add fish highlighting (#1308)Sebastian Neubauer2021-12-21
| | | | | | | | | | | | The highlights were copied and modified from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
* | | Add tree-sitter-comment (#1300)Michael Davis2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects https://github.com/helix-editor/helix/pull/1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <pickfire@riseup.net>
* | | Add link and quote queries for markdownGokul Soumya2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename markup.underline.link to markup.link.url - Add markup.link.label - Add markup.quote (The constructor theme scope was missing from the docs, so unrelated to this commit).
* | | Change text for gg to explain <n>gg (#1287)Ivan Tham2021-12-18
| | |
* | | cargo xtask docgenBlaž Hrastnik2021-12-18
| | |
* | | Add scala syntax highlights (#1278)Oliver Hechtl2021-12-18
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | * add partial scala syntax highlights * ran cargo xtask docgen * updated tree-sitter-scala, fixed highlights * fix comments * move identifier to the end of the highlights * add indents
* | Add instructions for Fedora Linux (#1270)Chetan Vardhan2021-12-17
| | | | | | | | | | | | | | * Add instructions for Fedora Linux * Update README.md * Update install.md
* | Add indents.toml to perl (#1280)ath32021-12-17
| |
* | Partly fix latex highlights and add markup scope docsBlaž Hrastnik2021-12-15
| |
* | Update lang-support.mdBlaž Hrastnik2021-12-15
| |
* | 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`
* | 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
* | Add `save_selection` command (#1247)Omnikar2021-12-10
| |
* | Update book to include typable command remapping (#1240)Oskar Nehlin2021-12-08
| | | | | | | | | | * Update book to include typable command remapping * Add additional example
* | Use same name used in config files for langs in docsGokul Soumya2021-12-08
| |
* | Auto generate docs for language supportGokul Soumya2021-12-08
| |
* | docs: Auto generate command listGokul Soumya2021-12-08
| |
* | Add note to `keymap.md` regarding `format_selections` (#1230)Omnikar2021-12-06
| |
* | fix: Normalize backtab into shift-tabBlaž Hrastnik2021-12-06
| | | | | | | | Fixes #1150
* | Add last modified file (gm) (#1093)Ivan Tham2021-12-02
| |
* | Fix typo on docs (#1201)George Rodrigues2021-12-01
| |
* | Remove defunct helix-bin AUR linkNicholas Boyd Isacsson2021-11-29
| |
* | gf as goto_file (#1102)Bob2021-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | * goto_file * support goto_file under current cursor * add C-w f/F * sync space w with window mode * Update helix-term/src/commands.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | Add llvm grammar (#1167)Kirawi2021-11-29
| |
* | Implement black hole register (#1165)ath32021-11-28
| |
* | Fix next char delete key documentation for prompt (#1180)ath32021-11-28
| |
* | Implement no-yank delete/change (#1099)ath32021-11-24
|/
* Align selections via & (#1101)Bob2021-11-23
| | | | | | | | | | | | | | | | | | | | | * align lines * remove log statement * use selections to align * fix a clippy issue * only accept 1,2,3 as user count * Update helix-term/src/commands.rs Co-authored-by: Ivan Tham <pickfire@riseup.net> * return if user count is not correct * add doc Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Add link to Keymap page in book. (#1137)NexiNov2021-11-22
|
* File picker config (#988)Dan Nases Sha2021-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * squashed WIP commits * hide_gitignore working with config * pass reference to new config parameter of file_picker() * update config option name to match name on walk builder * add comments to config and documentation of option to book * add git_ignore option to WalkBuilder within prompt in commands.rs * WIP: add FilePickerConfig struct * WIP: cleanup * WIP: add more options including max_depth * WIP: changed defaults to match ignore crate defaults * WIP: change WalkBuilder in global_search() to use config options * WIP: removed follow_links, changed max_depth to follow config setting * WIP: update book with file-picker inline table notation * update documentation for file-picker config in book * adjusted to [editor.file-picker] in book configuration.md * adjust comments in editor.rs to be doc comments, cleanup * adjust comments * adjust book
* Document scrolling for hover command in keymap.md (#1117)Martin Junghanns2021-11-19
| | | | | * Document scrolling for hover command in keymap.md * Move popup keys to a dedicated section
* Remove extra instance of delete_word_backword in book (#1103)NexiNov2021-11-15
|
* Add command to inc/dec number under cursor (#1027)Jason Hansen2021-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add command to inc/dec number under cursor With the cursor over a number in normal mode, Ctrl + A will increment the number and Ctrl + X will decrement the number. It works with binary, octal, decimal, and hexidecimal numbers. Here are some examples. 0b01110100 0o1734 -24234 0x1F245 If the number isn't over a number it will try to find a number after the cursor on the same line. * Move several functions to helix-core * Change to work based on word under selection * It no longer finds the next number if the cursor isn't already over a number. * It only matches numbers that are part of words with other characters like "foo123bar". * It now works with multiple selections. * Add some unit tests * Fix for clippy * Simplify some things * Keep previous selection after incrementing * Use short word instead of long word This change requires us to manually handle minus sign. * Don't pad decimal numbers if no leading zeros * Handle numbers with `_` separators * Refactor and add tests * Move most of the code into core * Add tests for the incremented output * Use correct range * Formatting * Rename increment functions * Make docs more specific * This is easier to read * This is clearer * Type can be inferred