https://github.com/hideoo/toggler
Atom plugin - Toggle words and symbols
https://github.com/hideoo/toggler
atom cursor package selection symbols toggle words
Last synced: 7 months ago
JSON representation
Atom plugin - Toggle words and symbols
- Host: GitHub
- URL: https://github.com/hideoo/toggler
- Owner: HiDeoo
- License: mit
- Created: 2017-02-28T20:25:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T08:10:54.000Z (almost 8 years ago)
- Last Synced: 2025-03-30T22:41:47.164Z (8 months ago)
- Topics: atom, cursor, package, selection, symbols, toggle, words
- Language: JavaScript
- Homepage: https://atom.io/packages/toggler
- Size: 23.4 KB
- Stars: 21
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Toggler Package
[](https://travis-ci.org/HiDeoo/toggler)
[](https://ci.appveyor.com/project/HiDeoo/toggler/branch/master)
[](https://david-dm.org/HiDeoo/toggler)
Toggle words and symbols in Atom using a user defined configuration.
An **official** port for VS Code is also available [here](https://marketplace.visualstudio.com/items?itemName=hideoo.toggler).

[Changelog](https://github.com/HiDeoo/toggler/blob/master/CHANGELOG.md)
## Features
As none of the existing words toggling package were fitting my needs, I decided to write my own with the following features:
* **Easily user customizable.**
* Maintain word case.
* Multiple toggles support.
* Multiple cursors support.
* Multiple selections support.
* No dependency.
## Usage
Set your cursor on a word or select a word and press the associated keybinding (Ctrl+r by default on macOS, Alt+r on Windows and Linux).
You can also use the Atom Command Palette and choose the `Toggler - Toggle` command, or use the `Toggle` action in a context menu or use the application menu `Packages -> Toggler -> Toggle`.
## Configuration.
The configuration is saved in a `toggler.json` file which will be located in your Atom configuration directory.
To open the configuration, you can use the Atom Command Palette and choose the `Toggler - Config` command, or use the application menu `Packages -> Toggler -> Configure`. This will automatically open the configuration file in Atom.
```
[
["absolute", "relative"],
["high", "low"],
["horizontal", "vertical"],
["in", "out"],
["inner", "outer"],
["left", "right"],
["top", "bottom"],
["up", "down"],
["black", "white"],
["gray", "maroon", "red", "purple", "fuchsia", "green", "yellow", "blue", "aqua"],
["const", "let", "var"],
["import", "export"],
["join", "split"],
["JSON.parse", "JSON.stringify"],
["parse", "stringify"],
["pop", "push"],
["unshift", "shift"],
["test.only", "test"],
["onAnimationStart", "onAnimationEnd"],
["onChange", "onInput", "onSubmit"],
["onClick", "onDoubleClick"],
["onCompositionStart", "onCompositionEnd"],
["onCopy", "onCut", "onPaste"],
["onDragEnter", "onDragLeave"],
["onDragStart", "onDragEnd"],
["onFocus", "onBlur"],
["onKeyDown", "onKeyUp"],
["onMouseDown", "onMouseUp"],
["onMouseEnter", "onMouseLeave"],
["onTouchStart", "onTouchEnd"],
["addEventListener", "removeEventListener"],
["animationstart", "animationend"],
["change", "input", "submit"],
["dblclick", "click"],
["compositionstart", "compositionend"],
["copy", "cut", "paste"],
["dragenter", "dragleave"],
["dragstart", "dragend"],
["focus", "blur"],
["keydown", "keyup"],
["mousedown", "mouseup"],
["mouseenter", "mouseleave"],
["touchstart", "touchend"],
["componentDidMount", "componentWillUnmount"],
["getState", "setState"],
["container", "component"],
["atan", "tan"],
["ceil", "floor"],
["cos", "sin"],
["Math.atan", "Math.tan"],
["Math.ceil", "Math.floor"],
["Math.cos", "Math.sin"],
["Math.min", "Math.max"],
["min", "max"],
["activate", "deactivate"],
["address", "port"],
["add", "remove"],
["available", "unavailable"],
["background", "foreground"],
["before", "after"],
["client", "server"],
["connected", "disconnected"],
["connect", "disconnect"],
["development", "production"],
["dev", "prod"],
["drag", "drop"],
["file", "folder"],
["first", "last"],
["from", "to"],
["get", "set"],
["input", "output"],
["install", "uninstall"],
["key", "value"],
["load", "unload"],
["minor", "major"],
["online", "offline"],
["open", "close"],
["parent", "child"],
["positive", "negative"],
["prefix", "suffix"],
["previous", "next"],
["public", "private"],
["request", "response"],
["req", "res"],
["row", "column"],
["short", "long"],
["show", "hide"],
["source", "destination"],
["start", "stop"],
["valid", "invalid"],
["visible", "hidden"],
["width", "height"],
["x", "y"],
["0", "1"],
["enabled", "disabled"],
["enable", "disable"],
["on", "off"],
["true", "false"],
["yes", "no"],
["div", "span"],
["head", "body"],
["header", "footer"],
["ol", "ul"],
["tr", "td"],
["[]", "{}"],
["(", ")"],
["[", "]"],
["{", "}"],
["'", "\"", "`"],
["*=", "/="],
["*", "/"],
["&&", "||"],
["&", "|"],
["++", "--"],
["+=", "-="],
["+", "-"],
["<<", ">>"],
["<=", ">="],
["<", ">"],
["===", "!=="],
["==", "!="]
]
```
## Copyright and license
Copyright (c) 2017 HiDeoo. Code released under the [MIT license](https://github.com/HiDeoo/toggler/blob/master/LICENSE.md).