CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.

Home Page:https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ Indent selected lines

MattKindzerske opened this issue · comments

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...

  • tab should increase indention level
  • tab should decrease indentation level
  • ] should increase indention level
  • [ should decrease indentation level

Screenshots

image
Screen.Recording.2023-11-15.at.2.20.45.PM.mov

@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 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.

If you haven’t had a chance to work on this yet, I’m happy to step in. Let me know if that works for you.

@ladvoc I don't think anyone has started on this, I'd say go for it! Would you like me to assign this to you?

@ladvoc I don't think anyone has started on this, I'd say go for it! Would you like me to assign this to you?

Yes, please do.

@ladvoc assigned to you. It may or may not make sense to also knock out #259 in the same PR.

Hey @ladvoc, thanks a lot for taking the time to look into this issue! It seems there hasn't been much progress on it, so I’ve started working on it myself and it's already halfway done. I'll go ahead and assign it to myself and remove you.