Comments (3)
If you put commands inside an execute-commands
block, that effectively puts them in an undo group together.
This command produces two operations that can be undone individually:
kak -n -e 'exec x~; exec jx~'
This command produces one operation that can only be undone as a unit:
kak -n -e 'eval %{ exec x~; exec jx~; }'
This command also produces one operation that can only be undone as a unit:
kak -n -e 'exec x~jx~'
from kakoune.
Great info! I just created a post in the users forum, in the Recipes & Guides category, as I thought the info you provided could be useful to people who do not necessarily check on GitHub.
from kakoune.
Let me add that the problem can be partly assuaged by pasting text into a scratch buffer, doing the changes in the scratch buffer, and pasting the modified content back into the original buffer (the scratch buffer is then deleted). This is better, but still not as good as begin-undo-group
and end-undo-group
commands would allow.
from kakoune.
Related Issues (20)
- [BUG] setting a face to itself in kakrc causes hang HOT 5
- License on Logo HOT 2
- [BUG][CRASH] regex is broken HOT 1
- [BUG/QUESTION] UTF-8 characters render as question marks in kak under WezTerm on MacOS HOT 2
- [BUG] inconsistent syntax in asciidoc for buffers enclosed by stars such as scratch HOT 2
- [BUG] rendering issue in asciidoc with nested stars and backticks HOT 6
- [BUG] Alternations in lookarounds produce an unhelpful error message
- cygwin compilation error using gcc (windows10) HOT 7
- How to remove the format charaters in the man buffer [QUESTION] HOT 3
- [BUG] Numpad/Keypad numbers produce garbage
- [BUG] (?S) flag strangely changes lookaround behavior HOT 1
- [BUG][CRASH] Signal: 11 (SEGV) HOT 11
- [BUG] Commands relying on viewport donβt work in non-interactive mode
- [REQUEST] hide mapped key in menu
- [BUG] <esc> does not end macro recording HOT 2
- [REQUEST] Allow git-apply to stage/reverse hunk at cursor. HOT 1
- typo in scopes.asciidoc
- [REQUEST] sh filetype quotation highlighting of subshells
- [REQUEST] Syntax highlighter for Typst HOT 2
- [BUG] Some control characters cannot be entered, even using raw insert
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kakoune.