| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
This adds a simple base64 implementation to keep us from adding a crate for one function. It's
mostly based on
https://github.com/marshallpierce/rust-base64/blob/a675443d327e175f735a37f574de803d6a332591/src/engine/naive.rs#L42
|
|
|
|
|
|
| |
It is easy to forget to call `Document::apply` and/or `View::apply` in
the correct order. This commit introduces a helper function which
closes over both calls.
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Now Option<DocumentId> uses one byte rather than two
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* reverse the dependency between helix-tui and helix-view by moving a fiew types to view
* fix tests
* clippy and format fixes
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
|
|
|
|
|
|
|
|
| |
Need to be used for autoinfo
Revert "Revert "Refactor key into helix-view""
This reverts commit 10f9f72232f5789323d689bf0f9cd359715770d6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Did not use defaults when custom keymap was used
This reverts commit ca806d4f852e934651132fc9570a6110e30f646d.
|
|
|
|
| |
Now also make use of Deserialize for Config.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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`.
|
| |
|
| |
|
|
|
|
|
| |
Cursors are still a bit buggy and we should render in focus statusbar
differently than in the other pane.
|
|
|
|
|
| |
Command needs to be able to deal with UI. We'll separate it again later
on.
|
| |
|
| |
|
| |
|
| |
|
|
It still largely depends on term for some types but I plan to change
that later.
|