aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
Commit message (Collapse)AuthorAge
...
* 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.
* Move helix-view/tests/*txt files to txts subdirectory (#372)teenjuna2021-06-25
| | | | | * Move helix-view/tests/*txt files to txts subdirectory * Rename tests/txts to tests/encoding
* Fix previous broken refactor key into helix-viewIvan Tham2021-06-24
| | | | | | | | Need to be used for autoinfo Revert "Revert "Refactor key into helix-view"" This reverts commit 10f9f72232f5789323d689bf0f9cd359715770d6.
* add missing docShafkath Shuhan2021-06-23
|
* Handle non-UTF8 filesShafkath Shuhan2021-06-23
|
* Fix flipped condition where Helix adds a line ending on open.Nathan Vegdahl2021-06-23
|
* Add surround keybindsGokul Soumya2021-06-22
|
* Add function to get the line ending of a str slice.Nathan Vegdahl2021-06-21
| | | | This is needed in some places.
* Don't need getters/setters for line_ending property.Nathan Vegdahl2021-06-21
| | | | | It's plain-old-data. If we want to do fancier things later, it's easy to switch back.
* Merge branch 'master' of github.com:helix-editor/helix into ↵Nathan Vegdahl2021-06-20
|\ | | | | | | | | | | | | line_ending_detection Rebasing was making me manually fix conflicts on every commit, so merging instead.
| * Fix doc warningsIvan Tham2021-06-20
| |
| * 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.
* | Work on moving code over to LineEnding instead of assuming '\n'.Nathan Vegdahl2021-06-20
| | | | | | | | Also some general cleanup and some minor fixes along the way.
* | Misc fixes and clean up of line ending detect code.Nathan Vegdahl2021-06-20
| |
* | changed some hardcoded newlines, removed a else if in line_ending.rsJan Hrastnik2021-06-19
| |
* | Merge remote-tracking branch 'origin/master' into line_ending_detectionJan Hrastnik2021-06-19
|\|
| * Refactor key into helix-viewIvan Tham2021-06-19
| | | | | | | | Now also make use of Deserialize for Config.
| * 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`
| * 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