Page 1 of 1
Column mode in PB IDE
Posted: Sun Sep 25, 2022 7:04 pm
by miskox
Hello!
It would be great if Column mode be added to PB IDE. Sometimes I want to select (using shift key and arrow keys) some text but not the whole lines. See images.
(ultraedit has this funcionality - you can download a free demo)
Thanks.
Saso
Re: Column mode in PB IDE
Posted: Sun Sep 25, 2022 9:03 pm
by Caronte3D
Push ALT key and select with the left mouse button

Re: Column mode in PB IDE
Posted: Sun Sep 25, 2022 11:11 pm
by mk-soft
It's not written anywhere ...
On Windows and macOS the 'ALT' key
On Linux with the 'CTRL' key
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 3:42 am
by skywalk
Ha! That is good to know.
Is split window another hidden gem?
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 5:48 am
by #NULL
Well, you get a rectangle selection, but the edit does not work. In column mode i believe you would be able type/edit on all the lines at once.
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 10:44 am
by ChrisR
I use it quite often, it is very useful.
One thing I miss though is when copying, pasting a block, to be able to insert the paste block, with lines insertion. Currently it is pasted on top of the existing code, as a replacement, which is another option to keep.
Be able type/edit on all the lines at once would be a great bonus feature +1
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 3:16 pm
by miskox
Thank you all!
Thanks for the ALT option. It is something (if I want to copy/paste it somewhere) but I would prefer full funcionality (and I prefer using the keys - after all we use keyboard when typing code, right?).
Thanks again.
Saso
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 4:36 pm
by Axolotl
Have you tried:
1. CursorKeys to the starting position
2. SHIFT + CursorKeys to select some code (normal)
3. SHIFT + ALT + CursorKeys to select some code (block mode)
After copy (CTRL + C) you can paste (CTRL + V) the text block, but you have to be sure you want overwrite the "block area".
Because insertion is a kind of overwritng the existing text.
I use this a lot, but it still may not be what you are looking for.
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 4:47 pm
by miskox
@Axolotl: thanks! It is close (holding ALT key is something I would have to memorize and it would be great to use only one key with my left hand: SHIFT).
Saso
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 5:02 pm
by #NULL
You can also use search/replace to edit multiple identical lines simultaneously.
- select 'el' of multiple lines with shift alt cursor-keys (on linux)
- replace (cntrl F) 'el' with 'els', check 'search inside selection only'
- 'replace all'
now those lines have 'levels' instead of 'level'.
Re: Column mode in PB IDE
Posted: Mon Sep 26, 2022 6:52 pm
by davido
Thank you all for this.
I was unaware of this gem!
What other 'Easter eggs' are hidden?