aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/macros.rs
Commit message (Collapse)AuthorAge
* Apply transactions to all views (#4733)Michael Davis2022-11-23
| | | | | | | | | | | | | | | | | * Add a test case for updating jumplists across windows * Apply transactions to all views on history changes This ensures that jumplist selections follow changes in documents, even when there are multiple views (for example a split where both windows edit the same document). * Leave TODOs for cleaning up View::apply * Use Iterator::reduce to compose history transactions Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Expand doc/view macros to allow fetching specific idBlaž Hrastnik2022-09-03
| | | | This simplifies the code and hides away unwraps
* Simplify view/doc macrosBlaž Hrastnik2021-11-18
|
* Replace documents SlotMap with BTreeMapBlaž Hrastnik2021-11-04
|
* Filter the initial completionBlaž Hrastnik2021-10-05
|
* Document macros (#693)oberblastmeister2021-09-05
| | | | | | | | | | | | | | | * add docs * clean up * remove * more * Update helix-view/src/macros.rs Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* 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.