Coder Social home page Coder Social logo

severinkaderli / atom-reverser Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 120 KB

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

JavaScript 100.00%
atom atom-reverser coffeescript javascript

atom-reverser's People

Contributors

dgr8lookinsparky avatar florianwendelborn avatar severinkaderli avatar webcaetano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

webcaetano

atom-reverser's Issues

add more reversable strings

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.)

keep selection

Would be nice if inverting a string would keep the selection you had, so you can invert it back when you press it again.

bug with keeping selection

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:

  1. Select the first ".
  2. Run atom-reverser
  3. See that rune is now selected.

advanced selection keeping

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.

Some more entries

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

more entries

  • print -> println
  • from -> to
  • request -> response
  • req -> res
  • serial -> parallel
  • external -> internal

Will PR if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.