CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

✨ Indent selected lines

Open MattKindzerske opened this issue 2 years ago • 6 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 increase indention level
  • ] should increase indention level
  • [ should decrease indentation level

Screenshots

image

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

MattKindzerske avatar Nov 15 '23 19:11 MattKindzerske

@thecoolwinter is this possible with the new text view?

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

Edit: modified issue description

austincondiff avatar Dec 09 '23 21:12 austincondiff

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

thecoolwinter avatar Mar 09 '24 03:03 thecoolwinter

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 avatar Aug 21 '24 16:08 ladvoc

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

austincondiff avatar Aug 23 '24 22:08 austincondiff

@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 avatar Aug 23 '24 23:08 ladvoc

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

austincondiff avatar Aug 24 '24 02:08 austincondiff

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.

tom-ludwig avatar Sep 27 '24 19:09 tom-ludwig