Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort lines / separated list of values #7

Closed
krasa opened this issue Jun 16, 2015 · 11 comments
Closed

Sort lines / separated list of values #7

krasa opened this issue Jun 16, 2015 · 11 comments

Comments

@krasa
Copy link
Owner

krasa commented Jun 16, 2015

Case-Sensitive A-z
Case-Sensitive z-A
Case-Insensitive A-Z
Case-Insensitive Z-A
Numerically 0-9
Numerically 9-0
Line Length Short-Long
Line Length Long-Short
With whitespace ignored
@lots0logs
Copy link

👍 on this 😄 ..Though how about sorting a coma separated list of strings? If I find some time I will try and submit a PR.

@krasa
Copy link
Owner Author

krasa commented Jul 3, 2015

👍 perhaps it would be good to do it with a dialog for choosing a separator, as in AlignToColumnsAction.

@krasa krasa changed the title Sort lines Sort lines / separated list of values Apr 14, 2016
krasa added a commit that referenced this issue Apr 15, 2016
krasa added a commit that referenced this issue Apr 15, 2016
@krasa
Copy link
Owner Author

krasa commented Apr 15, 2016

the only missing thing is now sorting a coma separated list of strings

@elapouya
Copy link

elapouya commented Feb 3, 2017

I vote to have numerical sorting : that will be very useful to sort a 'find . -ls' or a 'ls -la'
A dialog would appear to choose column and separator (otherwise choose the first numerical column)

@krasa
Copy link
Owner Author

krasa commented Feb 11, 2017

@elapouya #23

@shanimal
Copy link

shanimal commented Apr 19, 2017

I love this plugin btw...

How about some command aliases?
alt+m+"+s," : split by comma, sort asc and re-join
alt+m+"+case" : uppercase
alt+m+"-case" : lowercase
alt+m+"-case" : lowercase alphanumeric
alt+m+"-casen" : lowercase numeric
alt+m+"-esc" : uescape
alt+m+"+esc" : escape
alt+m+"+snake" : SCREAMING_SNAKE_CASE
alt+m+"-case" : hyphen-case
alt+m+".case" : dot-case
alt+m+"ccase" : camelCase
alt+m+"pcase" : PascalCase
alt+m+"cap" : Capitalize
alt+m+"capf" : Capitalize Fully
etc...

@krasa
Copy link
Owner Author

krasa commented Apr 22, 2017

I don't know what you mean by that

@shanimal
Copy link

alt+m activates the String Manipulation menu...
containers_ open-channel_jsx-dev-portal-___projects_apps_dev-portal

If you then type "d1" it activates the sort window with the default (or maybe previous(?) sort).
sort_settings_and_containers_ open-channel_jsx-dev-portal-___projects_apps_dev-portal

So what if you typed "+case" and it would automatically sort uppercase, or "+snake" to automatically SREAMING_SNAKE_CASE the string.

Thanks again for an awesome plugin!

@krasa krasa mentioned this issue Jun 11, 2018
@krasa
Copy link
Owner Author

krasa commented Jun 11, 2018

created another issue for that, but not sure if it possible

@krasa krasa closed this as completed Jun 11, 2018
@shanimal
Copy link

@krasa nevermind.

I don't remember trying it before I posted here. But it looks like it already does a nice search and shows all menu items that contain whatever you type.

So if you type alt+m then +snake you get this...

explore____projects_apps_smart-city-mobile_explore__-____app_screens_transportationsearch_js__explore

@krasa
Copy link
Owner Author

krasa commented Jun 11, 2018

@shanimal that only works for letters after K, but if you type . dot then it will work for everything. cool.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants