CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
497 stars 74 forks source link

✨ Indent selected lines #220

Open MattKindzerske opened 8 months ago

MattKindzerske commented 8 months ago

Description

When multiple lines are selected, the tab key should increase the indent of each line, instead of replacing the selected text with a tab.

When text is selected...

Screenshots

https://github.com/CodeEditApp/CodeEdit/assets/87990592/463a16ed-0da7-4bda-bb0b-b85eda423230

austincondiff commented 7 months ago

@thecoolwinter is this possible with the new text view?

Along with tab, ⌘] and ⌘[ should increase and decrease respectively as well.

Edit: modified issue description

thecoolwinter commented 4 months ago

@thecoolwinter is this possible with the new text view?

Along with tab, ⌘] and ⌘[ should increase and decrease respectively as well.

Yes it is, we'll just need to add some functionality to our tab replacement code. I'll work on getting this implemented next.