Missing functions...

User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

ToDo
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

There are many problem to move caret after horz-scroll!
Main difference with vert-scroll: all rows are equal but columns are not.

1. A text can have tab-chars (and/or can be viewed by non-monotype font).
For the text not all columns are available to set caret.
2. Selection.
What part of selection can be visible or must be unvisible to decide "Need to move caret"?
3. Multi-carets.
How to decide?

----------------
However i try to do "move caret".
"Selection" and "Multi-carets" will be skipped - caret will be not moved.
"Tabs in text" - caret will be moved but saving of relative pos is not ensured.
You need to switch on option cuda_ext_horz_scroll_move_caret (and caret_after_end of course).
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

Done. Try new version from github
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Hi Andrey,

Thanks so much for all of your efforts on this! :D
kvichans wrote:There are many problem to move caret after horz-scroll!
Main difference with vert-scroll: all rows are equal but columns are not.

1. A text can have tab-chars (and/or can be viewed by non-monotype font).
For the text not all columns are available to set caret.
2. Selection.
What part of selection can be visible or must be unvisible to decide "Need to move caret"?
3. Multi-carets.
How to decide?
Yes, I see there is much more than meets the eye (no pun intended) :lol: !
----------------
However i try to do "move caret".
"Selection" and "Multi-carets" will be skipped - caret will be not moved.
In my opinion, this is correct behaviour, because if the caret were moved, the selection would be cancelled!
"Tabs in text" - caret will be moved but saving of relative pos is not ensured.
That is understandable; I never use tab characters (convert tabs to spaces), so this doesn't affect me, nevertheless this seems to be correct. ;)
You need to switch on option cuda_ext_horz_scroll_move_caret (and caret_after_end of course).
From my testing, this seems to be just right. :D Thanks!
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

qwerky,
Posted your report (just found it) to https://github.com/Alexey-T/CudaText/issues/1006
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

But what happens now in CudaText, if you select the target block and then paste, the clipboard contents are not pasted over the selection, but rather are inserted ...
this is fixed; sorry for long delay, it was simple fix.
Post Reply