I'm looking for a way to select a block of text in Iterm2 and delete it.
Something like the following example, where I delete a selection of text in the middle of a line.
> python3 main.py bad arguments good arguments
> python3 main.py ■■■■■■■■■■■■■ good arguments
(click some key...)
> python3 main.py good arguments
I know there are shortcuts to "Delete line after cursor", but that would not work here since I don't want to delete the entire line after the cursor.
Is there any feature like this in Iterm2? It's exactly the same as an average text editor which lets you select and delete text within a line.
Note: I'm using zsh for my shell