aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
Commit message (Collapse)AuthorAge
* Add system clipboard yank and paste commandsBenoît CORTIER2021-06-20
| | | | | | | | | | | | | | | | | | | This commit adds six new commands to interact with system clipboard: - clipboard-yank - clipboard-yank-join - clipboard-paste-after - clipboard-paste-before - clipboard-paste-replace - show-clipboard-provider System clipboard provider is detected by checking a few environment variables and executables. Currently only built-in detection is supported. `clipboard-yank` will only yank the "main" selection, which is currently the first one. This will need to be revisited later. Closes https://github.com/helix-editor/helix/issues/76
* Only reconfiure highlights when setting themewojciechkepka2021-06-19
|
* Add ability to change theme on editorwojciechkepka2021-06-19
|
* Add `close_language_servers` method on `Editor`wojciechkepka2021-06-19
|
* Replace `Editor::current` by a macroBenoît CORTIER2021-06-18
| | | | | | | | | This is necessary to workaround ownership issues across function calls. The issue notably arised when implementing the registers into `Editor` and I was getting annoyed again when implementing copy/pasting into system clipboard. The problem is addressed by using macro calls instead of function calls. There is no notable side effect.
* Add cursor kind to separate hidden cursor from posIvan Tham2021-06-15
| | | | | Now IME cursor position should be correct since we can still set cursor position without drawing the cursor.
* Remove RwLock for registersBenoît CORTIER2021-06-15
| | | | | | | | Registers are stored inside `Editor` and accessed without `RwLock`. To work around ownership, I added a sister method to `Editor::current`: `Editor::current_with_context`. I tried to modify `Editor::current` directly but it's used at a lot of places so I reverted into this for now at least.
* add alternate file (#223)Robin2021-06-12
| | | | | | | | | | | | | * add alternate file inspired by vim ctrl-6/kak ga commands. the alternate file is kept per view * apply feedback from #223 * rename to last_accessed * add ga doc * add fail message for ga
* lsp: Display LSP progress messages (#216)Wojciech Kępka2021-06-11
|
* Derive debug without featureIvan Tham2021-06-10
| | | | Note that this also removed those `finish_non_exhaustive()`.
* Implement Debug for data structure as a featurenotoria2021-06-10
|
* Support go to line 1Zheming Li2021-06-08
|
* Don't panic on LSP not startingEgor Karavaev2021-06-08
|
* Implement register selectionBenoît CORTIER2021-06-07
| | | | | | User can select register to yank into with the " command. A new state is added to `Editor` and `commands::Context` structs. This state is managed by leveraging a new struct `RegisterSelection`.
* Create document if it doesn't exist on saveWojciech Kępka2021-06-06
|
* Try to detect language when document file path is setBlaž Hrastnik2021-06-04
| | | | Fixes #91
* Fix split sizes getting out of sync with the terminal size, refs #69Blaž Hrastnik2021-06-03
|
* Address clippy lint.Blaž Hrastnik2021-05-17
|
* If switching to a previously open buffer in the same view, keep it's old offsetBlaž Hrastnik2021-05-17
|
* Only send the document close event if we're closing the underlying bufferBlaž Hrastnik2021-05-07
|
* View::new is infallible, so is editor.switch/new_file.Blaž Hrastnik2021-05-07
|
* Allow switching views back to scratch buffers.Blaž Hrastnik2021-05-07
|
* Canonicalize the path on open to avoid duplicates.Blaž Hrastnik2021-05-07
|
* Add the :new command, don't crash if saving without filename.Blaž Hrastnik2021-05-07
|
* clippy lintBlaž Hrastnik2021-05-06
|
* Start moving more LSP calls into callbacks/futures without capturing selfBlaž Hrastnik2021-05-06
|
* Tokio migration.Blaž Hrastnik2021-05-06
|
* Load config files from ~/.config/helix, fallback to defaults.Blaž Hrastnik2021-04-07
|
* Allow starting hx without a file. A new blank file will be created.Blaž Hrastnik2021-04-06
|
* Simplify code by providin cx.current() = (view, doc).Blaž Hrastnik2021-04-01
|
* clippy lintBlaž Hrastnik2021-03-31
|
* Weave through view_id references so that views into one file have ↵Blaž Hrastnik2021-03-31
| | | | independent selects.
* view: document.rs cleanupBlaž Hrastnik2021-03-29
|
* Load theme from toml file.Blaž Hrastnik2021-03-25
|
* Trivial jumplist implementation.Blaž Hrastnik2021-03-24
|
* Reset first_line when changing files.Blaž Hrastnik2021-03-24
|
* editor.open can now either replace the current view or open in a split.Blaž Hrastnik2021-03-24
|
* Derive a separate ViewId type.Blaž Hrastnik2021-03-24
|
* Drop refcell use, make view simply ref doc.id.Blaž Hrastnik2021-03-23
|
* Store Document on the Editor type, make View reference it.Blaž Hrastnik2021-03-22
|
* Merge some imports.Blaž Hrastnik2021-03-22
|
* Expose doc.syntax() via accessor.Blaž Hrastnik2021-03-18
|
* Hold a reference to executor on the Editor type.Blaž Hrastnik2021-03-16
|
* Fix goto code before merging.Blaž Hrastnik2021-03-16
|
* preparing for gd mergeJan Hrastnik2021-03-16
|
* editor.open now checks if view already existsJan Hrastnik2021-03-16
|
* lsp: Wire up didClose notification on editor.close.Blaž Hrastnik2021-03-16
|
* lsp: Pass through language_id on didOpenTextDocument.Blaž Hrastnik2021-03-16
|
* Implement keep_selections (filter selections on regex).Blaž Hrastnik2021-03-15
|
* Configure language servers via LanguageConfiguration.Blaž Hrastnik2021-03-14
|