Skip to content

🐞 Multi line Indentation and keyboard shortcuts #304

@hi2gage

Description

@hi2gage

Description

There are a couple issues with the current implementation of indentation.

  1. After the user indents selected text (single line or multi line) the selection is removed. This doesn't allow for multiple movements inwards or outwards.
  2. tab and + tab do not work as keyboard shortcuts.

The interface of the text replace needs to be changed to be able to edit selections on multi line changes. This will unblock #259

To Reproduce

  1. Select multiple lines of text
  2. Attempt to indent using tab
  3. Verify that it does not work
  4. Indent using + ]
  5. Verify that selection is removed after indentation

Expected Behavior

tab and + tab should work as keyboard shortcuts.

The selection should stay around and the selection should update after each indentation

Screen.Recording.2025-04-12.at.08.48.47.mov

Version Information

CodeEditSourceEditor: 0.11.0
Xcode: 16.2

Additional Context

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions