All notable changes to the "Hungry Delete" extension will be documented in this file.
- Better handling of hungry delete on line for special character such as ", less annoying when editing JSON file
Breaking change:
Setting: followAbovelineIndent
is renamed into followAboveLineIndent
Note: Migrate vscode version to 1.69
- Consider increase indent pattern
- Follow Above Line Indent
- Keep One Space Exception
- Refactored the codes a lot, may result in bugs, please leave issue if you find big problems.
- Keep one space after last word of previous line after smart backspace
- Simplify some logic in code
- Reveal the cursor in the view point if only one selection (credit to tiansin)
- More hungry approach for let a = |b and a == |b, previously it only delete the space before it, it also delete the operator now
- Support delete entire auto closing pair if the content is empty and the cursor is put just before the opening pair. For example, (), {}, ``, ""
- Fix bug: ** located at the start of the line cannot be deleted by ctrl+backspace because !0 is evaluated to false inside if()
- Fix rare case when line.rangeIncludingLineBreak === line.range
- Change README with Vim Compatibility
- Support Smart Backspace
- Fix
aaa |bbb
bug
- Support multiple cursors
- Use a mock implementation of
deleteWorldLeft
instead of invoking the editor command
ctrl + backspace
on visual selection don't delete the selection
- Use a more robust backtrace algorithm to find the starting position of hungry delete, and use extension API such as TextEdit instead of directly calling command.
- Hungry delete doesn't limit to empty line, it can now be used at the start of a non-empty line.
- Unable to delete the lines that should be hungry deleted (due to a typo in command's name)
- Initial release
- Able to override
ctrl+backspace
in key binding to run the hungry delete command, the cursor located at the empty line will move up to find the last non-empty character.