cppit / jucipp

A lightweight & cross-platform IDE supporting the most recent C++ standards. This project has moved to https://gitlab.com/cppit/jucipp.
https://gitlab.com/cppit/jucipp
MIT License
882 stars 98 forks source link

Multicursor support #361

Closed mdsitton closed 6 years ago

mdsitton commented 6 years ago

Is there any plans to look into adding multiple cursor support like sublime text, atom, vs, and plenty of others support now days.

To me this is essential in a modern editor, the project is looking great so far and this is one of the larger missing things for me.

Thanks!

eidheim commented 6 years ago

Thank you for your input. I've never used multiple cursors, but going to add this on my TODO list:)

eidheim commented 6 years ago

I added multiple cursor support in https://github.com/eidheim/jucipp/commit/662b31785be0218df03d272f487588f0f08bd049

Keys are alt-up/down to add extra cursor, and alt-shift-up/down/left/right to move last added cursor.

Missing feature is home/end keys that are not yet moving all the cursors to correct line start/end if the indentation on the lines are different.

There are probably other features missing too, since, like I said, I have never used multiple cursors before (been using regex-replace instead).

edit: updated commit hash

eidheim commented 6 years ago

I fixed the home/end keys when using multiple cursors.