Open deathaxe opened 1 year ago
Selecting a line which contains a folded region and moving it up or down via swap_line_up or swap_line_down unfolds the folded code block.
swap_line_up
swap_line_down
It is a surprising behaviour and might result in loosing track of content if unfolded region expands to several dozens or hundreds of lines.
Treat folded regions as part of current line and move them together with the whole line without unfolding them or changing selection.
?
No response
Note: Folding state should also be maintained for normal copy & paste operations (see https://github.com/sublimehq/sublime_text/issues/494).
Problem description
Selecting a line which contains a folded region and moving it up or down via
swap_line_up
orswap_line_down
unfolds the folded code block.It is a surprising behaviour and might result in loosing track of content if unfolded region expands to several dozens or hundreds of lines.
Preferred solution
Treat folded regions as part of current line and move them together with the whole line without unfolding them or changing selection.
Alternatives
?
Additional Information
No response