Comments (9)
That part with undo/redo merging steps is difficult, I wont promise the fix. Will see.
from cudatext.
Reproduced on this text, when caret is at the end of line 3
dddddddddd
ddddddddddd
dddddddddddddd
ddddddddddddddd
we must move to shorter line when doing Shift+Up.
from cudatext.
We have variable PauseForMakingGroup=1500 (in msec). if pause between actions is smaller, actions are later undone as a whole. I reduced this pause to 400. now if I press Undo / Undo with pause at least 400, Redo will revert them as separate actions, as you want.
this pause is not the global option yet. not sure it's needed.
from cudatext.
beta linux-qt5, rename to *.xz.
cudatext.xz.zip
from cudatext.
Thanks.
I think this can be a OK solution, but an important improvement should be made: undo/redo must NOT be affected by this var.
Example:
I'm editing user.json. I delete some lines one by one, like line 5, line 10, line 15, line 20 and line 25. Then, if I press Ctrl+Z multiple times, I can reinsert these lines one by one, good.
But if I HOLD Ctrl+Z to run many undos fast, my undo history becomes a complete mess, with all the very separated lines merged to a single redo action. It shouldn't be that way. Having the proper undo/redo history intact can be important sometimes.
So: there should be an exception so that running consecutive undo/redo shouldn't be able to merge multiple undo items into one.
from cudatext.
Other real scenario affected if you don't fix what I described in previous comment:
I'm writing a long text or code, working hours on it, with many typing and deleting. At some point, I feel I'm not satisfied with current content and decide to return to a previous state and continue to write from there. Instead of holding Ctrl and tapping Z many times until my finger hurts, I simply hold Ctrl+Z for fast multiple undos, looking at when it's near the point I will choose to restart.
When I release the keys, I pause to look carefully, then I decide I don't want to stop there, but a bit later. So now I need to run some redo's (Ctrl+Shift+Z). But now my undo history was already lost, because while I was holding Ctrl+Z my many undo entries were merged. So I no longer have the middle states to redo.
You don't see this issue in any other editor, it's clearly a bug.
from cudatext.
I agree. I will try to fix that.
from cudatext.
next attempt, beta.
from cudatext.
Looks good, thanks.
from cudatext.
Related Issues (20)
- Bad parsing of JavaScript comment HOT 18
- `Indent selection` shouldn't add spaces/tab to empty lines HOT 3
- After dbclicking a word, holding and expanding to the left, Shift+arrow runs at wrong direction HOT 6
- Autocomplete shouldn't eat next word when there's no space HOT 15
- lexer 'Todo.txt' cannot be uninstalled from AddonsManager (shown as 'Todo' in uninstall menu)
- Cuda restores old tab scroll position on drop HOT 3
- cuda_complete_from_text and option_min_len HOT 1
- "New file" button is missing with 1.215.5.0 HOT 4
- Autocomplete inserts suggestion before caret left content instead of replacing it HOT 11
- activating of ui-tab in single instance bug (on Windows)
- Clarify download location in docs HOT 1
- [img] reopen HOT 1
- CudaText pollutes $HOME/.config with CudaTextrc files HOT 5
- Cannot assign find_hotkey_replace_dlg to "Ctrl+H" HOT 4
- "Open URL" in context menu shouldn't require selection HOT 4
- Cuda shouldn't scroll tab bar on tab mousedown HOT 8
- Tabs-bar: improvement for drag-drop of tabs HOT 8
- Cuda fails to highlight brackets in JSON file HOT 1
- CSS: Cuda is using different colors for `!important`, but it should be always the same HOT 4
- last update + hotspot plugin… HOT 4
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 cudatext.