Tyriar / vscode-sort-lines

Visual Studio Code extension to sort lines of text
https://marketplace.visualstudio.com/items/Tyriar.sort-lines
MIT License
146 stars 42 forks source link

Ingore some characters #117

Open SebastianStehle opened 1 year ago

SebastianStehle commented 1 year ago

Hi,

sometimes I use your extension to sort angular templates, I would like to ignore some characters, because angular has this notation with [] and ()

e.g.

[abc]
(def)
[ghi]
danielwerg commented 1 year ago

I have similar issue, I want to sort ESLint rules alphabetically with typescript-eslint plugin, here is example:

'block-spacing': 'off',
'brace-style': 'off',
'comma-dangle': 'off',
'@typescript-eslint/block-spacing': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/comma-dangle': 'off',

>Sort lines (ascending, case sensitive):

'@typescript-eslint/block-spacing': 'off',
'@typescript-eslint/brace-style': 'off',
'@typescript-eslint/comma-dangle': 'off',
'block-spacing': 'off',
'brace-style': 'off',
'comma-dangle': 'off',

If there was an option to ignore, I would be able to set it to @typescript-eslint/ and get following desired output:

'block-spacing': 'off',
'@typescript-eslint/block-spacing': 'off',
'brace-style': 'off',
'@typescript-eslint/brace-style': 'off',
'comma-dangle': 'off',
'@typescript-eslint/comma-dangle': 'off',