summaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
Commit message (Collapse)AuthorAge
* Add last modified file (gm) (#1093)Ivan Tham2021-12-02
|
* Implement "Goto last modification" command (#1067)ath32021-11-14
|
* helix-term/commands: move SCRATCH_BUFFER_NAME to helix-view/document (#1091)Cole Helbling2021-11-13
| | | | This way, the name is accessible everywhere `Document` and related types are.
* Fix earlier/later missing changeset update (#1069)Ivan Tham2021-11-11
| | | Fix #1059
* Refactor shebang detection to reuse the loaded bufferBlaž Hrastnik2021-11-08
|
* Detect filetype from shebang line (#1001)ath32021-11-08
|
* Make sure document diagnostics are sortedBlaž Hrastnik2021-11-06
|
* Inform when reaching undo/redo bounds (#981)Omnikar2021-11-05
| | | | | | | | * Inform when reaching undo/redo bounds * `Already at oldest change` when undo fails * `Already at newest change` when redo fails * Add missing `the`
* Uncomment mapping LSP diagnostics through changes (#925)Kirawi2021-10-29
|
* set_path: Pass in the function directlyBlaž Hrastnik2021-10-28
|
* Simplify set_pathBlaž Hrastnik2021-10-28
|
* Implement `hx --tutor` and `:tutor` to load `tutor.txt` (#898)Omnikar2021-10-28
| | | | | | | | | | | | | | | | | | | * Implement `hx --tutor` and `:tutor` to load `tutor.txt` * Document `hx --tutor` and `:tutor` * Change `Document::set_path` to take an `Option` * `Document::set_path` accepts an `Option<&Path>` instead of `&Path`. * Remove `Editor::open_tutor` and make tutor-open functionality use `Editor::open` and `Document::set_path`. * Use `PathBuf::join` Co-authored-by: Ivan Tham <pickfire@riseup.net> * Add comments explaining unsetting tutor path Co-authored-by: Ivan Tham <pickfire@riseup.net>
* minor: Further simplify take_withBlaž Hrastnik2021-10-27
|
* completion: fully revert state before apply & insertText common prefixBlaž Hrastnik2021-10-25
|
* fix: Indentation used different default on `hx` vs `hx new_file.txt`Blaž Hrastnik2021-10-24
|
* fix: lsp: Regression with textDocument/didSave not getting sentBlaž Hrastnik2021-09-09
|
* Don't panic on save if language_server isn't initializedBlaž Hrastnik2021-09-06
|
* lsp: doc.language_server() is None until initialize completesBlaž Hrastnik2021-09-06
|
* Drop some &mut bounds where & would have sufficedBlaž Hrastnik2021-09-06
|
* ls: Refactor textDocument/didSave in a similar veinBlaž Hrastnik2021-09-06
|
* lsp: refactor format so we stop cloning the language_serverBlaž Hrastnik2021-09-06
|
* lsp: Improve line ending handling when generating TextEditBlaž Hrastnik2021-09-06
|
* remove unsafeBrian Shu2021-08-27
|
* Move path util functions from helix-term to helix-core (#650)Kirawi2021-08-25
|
* fix: Don't internally use relative paths in the buffer pickerBlaž Hrastnik2021-08-24
| | | | Fixes #619
* Document more of document.rs (#562)Kirawi2021-08-18
|
* Show file preview in split pane in fuzzy finder (#534)Gokul Soumya2021-08-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add preview pane for fuzzy finder * Fix picker preview lag by caching * Add picker preview for document symbols * Cache picker preview per document instead of view * Use line instead of range for preview doc * Add picker preview for buffer picker * Fix render bug and refactor picker * Refactor picker preview rendering * Split picker and preview and compose The current selected item is cloned on every event, which is undesirable * Refactor out clones in previewed picker * Retrieve doc from editor if possible in filepicker * Disable syntax highlight for picker preview Files already loaded in memory have syntax highlighting enabled * Ignore directory symlinks in file picker * Cleanup unnecessary pubs and derives * Remove unnecessary highlight from file picker * Reorganize buffer rendering * Use normal picker for code actions * Remove unnecessary generics and trait impls * Remove prepare_for_render and make render mutable * Skip picker preview if screen small, less padding
* Resolve a couple TODOsBlaž Hrastnik2021-08-08
|
* fix: Map all selections on transaction.applyBlaž Hrastnik2021-07-31
|
* Move indent-style code into `helix_core::indent`.Nathan Vegdahl2021-07-30
|
* Give default document a single line ending.Nathan Vegdahl2021-07-30
|
* Enforce cursor/selection invariants in one place.Nathan Vegdahl2021-07-28
| | | | Rather than per-command like before.
* Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-24
|\
| * mark reloaded buffers as unchangedShafkath Shuhan2021-07-23
| |
* | Don't insert a final line ending on file load/reload.Nathan Vegdahl2021-07-21
| |
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-17
|\|
| * Fix #442 (#446)Kirawi2021-07-15
| | | | | | | | | | | | | | | | | | | | | | * fix #442 fix #442 fmt * create Rope from default line ending * Fix use of encoding in Document::open()
* | Merge branch 'master' into great_line_ending_and_cursor_range_cleanupNathan Vegdahl2021-07-06
|\|
| * appease clippyBlaž Hrastnik2021-07-05
| |
| * fix: Make path absolute before normalizingBlaž Hrastnik2021-07-05
| | | | | | | | :open ../file.txt failed before because .. would be stripped
| * fix: When calculating relative path, expand tilde lastBlaž Hrastnik2021-07-05
| |
| * `:reload` (#374)Kirawi2021-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * reloading functionality * fn with_newline_eof() * fmt * wip * wip * wip * wip * moved to core, added simd feature for encoding_rs * wip * rm * .gitignore * wip * local wip * wip * wip * no features * wip * nit * remove simd * doc * clippy * clippy * address comments * add indentation & line ending change
* | Fix empty document test.Nathan Vegdahl2021-07-02
| |
* | Make new documents empty, rather than starting with a line ending.Nathan Vegdahl2021-07-02
| |
* | Allow last line in file to lack a line break character.Nathan Vegdahl2021-07-02
| |
* | Make `Selection`'s normalize and transform methods self-consuming only.Nathan Vegdahl2021-07-01
| |
* | Clean up `Selection` to not use so many allocations.Nathan Vegdahl2021-07-01
|/
* Make Document's format API a little nicer.Joe Neeman2021-06-30
|
* Make formatting happen asynchronously.Joe Neeman2021-06-30
|
* Detect file language before file indent style.Nathan Vegdahl2021-06-26
| | | | | | | Fixes #378. The issue was that because indent style detection ran before language detection, there was no language indent style to fall back on if indent style detection failed, so it would just default to 2 spaces.