View Code? Open in Web Editor
NEW
The repository for this package has moved to GitLab: https://gitlab.com/severinkaderli/atom-reverser
Home Page: https://atom.io/packages/atom-reverser
License: MIT License
atom-reverser's People
Watchers
atom-reverser's Issues
Keyword 1
Keyword 2
+
-
*
/
up
down
left
right
top
bottom
hidden
visible
'
"
float between 0 and 1
1 - float
Probably unnecessary bonus: colors. (hex, rgb, etc.)
Would be nice if inverting a string would keep the selection you had, so you can invert it back when you press it again.
Non-word selections aren't kept when inverting.
Example JSON:
{
"rune" : {
"top" : [-2225 , 1503 ],
"bottom" : [2824 , -2350 ]
},
"base" : {
"radiant" : [-7000 , -6500 ],
"dire" : [7000 , 6250 ]
}
}
Steps to Reproduce:
Select the first "
.
Run atom-reverser
See that rune
is now selected.
I think it would be more reasonable, when the selection would only be kept for user-selected text , not for script-selected text. This would probably only require ~3 lines of code.
If you think that should be implemented, either do it, or tell me you would merge that. I will then submit a pull request as soon as I can.
Here are some more things that should be possible to replace, as usual - I'd be ready to PR this.
0.0.0.0 -> 127.0.0.1
const -> let
port -> address
hydrate -> dehydrate (react)
primary -> secondary
file -> folder
print -> println
from -> to
request -> response
req -> res
serial -> parallel
external -> internal
Will PR if needed.