Skip to content

Editor: add vertical block typing and replacement#3359

Merged
elfmz merged 4 commits into
elfmz:masterfrom
exkrexpexfex:vblockover
May 10, 2026
Merged

Editor: add vertical block typing and replacement#3359
elfmz merged 4 commits into
elfmz:masterfrom
exkrexpexfex:vblockover

Conversation

@exkrexpexfex

Copy link
Copy Markdown
Contributor

Closes #1459

@akruphi

akruphi commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Is new behavior not depended on Flags.Check(FEDITLINE_OVERTYPE)?

May be describe this feature in help in section @Editor in "Notes"?
For example (draft fantasy):

    4. If a vertical block is selected any text typing will replace the selected in all selected lines;
this behavior independent on #Ins# (Insert/Overtype) state.
    4. Если выбран вертикальный блок, любой набираемый текст заменит выделенное во всех выбранных строках;
это поведение не зависит от состояния #Ins# (Вставка/Замена).

@exkrexpexfex

Copy link
Copy Markdown
Contributor Author

The new behavior respects overtype and persistence blocks options. I've added a note in the help please check

@tempergate

tempergate commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

good "quality of life" feature

image

but it works strange, when it is starting from an empty place or a column with no symbols before (265-269)
correct when starting from the same columns after existing symbols or replacing already existing (270-272)

it would be better to add spaces before it

fixed

@exkrexpexfex

Copy link
Copy Markdown
Contributor Author

works strange, when it is starting from an empty place or a column with no symbols before (265-269) correct when starting from the same columns after existing symbols or replacing already existing (270-272)

@tempergate thanks for testing, fixed, please check.
Also 0-width vertical blocks are supported, select with alt+up/down and start typing, please give it a try as well.

@tempergate

Copy link
Copy Markdown
Contributor

works strange, when it is starting from an empty place or a column with no symbols before (265-269) correct when starting from the same columns after existing symbols or replacing already existing (270-272)

@tempergate thanks for testing, fixed, please check. Also 0-width vertical blocks are supported, select with alt+up/down and start typing, please give it a try as well.

works great

Comment thread far2l/src/editor.cpp Outdated
@tempergate

Copy link
Copy Markdown
Contributor

@exkrexpexfex , there is a new conflict after editor patches, same as for #3248

@exkrexpexfex

Copy link
Copy Markdown
Contributor Author

@tempergate thanks, updated

@elfmz elfmz merged commit 7a82289 into elfmz:master May 10, 2026
11 of 12 checks passed
@exkrexpexfex exkrexpexfex deleted the vblockover branch May 11, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] vertical block column Editor, like Visual Studio Code

4 participants