ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.77k stars 5.29k forks source link

Column Selection on Drag etc #5667

Open MarketingPip opened 1 week ago

MarketingPip commented 1 week ago

Describe the feature

It would be great to drag a box over an exact multi-row section without selecting entire lines (for copying ASCII art etc and much more).

Use Case

For properly copying lines.

Proposed Solution

Select, click and hold, drag... such as TextMate offers (on hot key / plugin etc)?

Other Information

Do not think this exist already. My apologizes if it does.

Acknowledgements

ACE version used

null

nightwing commented 1 week ago

It is possible to do this by holding alt key

MarketingPip commented 1 week ago

@nightwing - wow! :D Just what I needed.

tbh - I feel like Ace needs a good semantic search engine for documentation etc.... (been hard for long time to find things being so big).

MarketingPip commented 1 week ago

@nightwing - should this be kept open or am I missing something. Still do not see anywhere in keyboard shortcuts etc.

MarketingPip commented 1 week ago

@nightwing and is there any way we can take the selected text and drag / replace with the exact same columns etc on different text?

nightwing commented 1 week ago

We did not add specific documentation for it, because it works the same as it does in other editors like sublime text or textmate. Dragging currently does not work for multiple selections, i see how it can be a useful addition but not sure if it should be done automatically for text dragged from multiselect or with a press of shortcut.