Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

toggle-quotes

An Atom package to toggle between single and double quotes

Subscribe to updates I use toggle-quotes


Statistics on toggle-quotes

Number of watchers on Github 72
Number of open issues 17
Average time to close an issue about 1 month
Main language JavaScript
Average time to merge a PR 20 days
Open pull requests 5+
Closed pull requests 1+
Last commit over 1 year ago
Repo Created almost 6 years ago
Repo Last Updated over 1 year ago
Size 82 KB
Organization / Authoratom
Contributors8
Page Updated
Do you use toggle-quotes? Leave a review!
View open issues (17)
View toggle-quotes activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating toggle-quotes for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Toggle Quotes

Build Status Dependency Status

Toggle a single-quoted string to a double-quoted string, and vice versa.

(NOTE: Currently unsupported on tab-indented lines. See https://github.com/atom/toggle-quotes/issues/27 for more information.)

toggle-quotes-demo

This is a package for Atom, a hackable text editor for the 21st Century.

Usage

Place the cursor within a string and execute the Toggle Quotes: Toggle command to toggle that string between single and double quotes. Only available when using a grammar that supports single-quoted and double-quoted strings, or any other configured string character (e.g. JavaScript, Python, Ruby, etc.).

Commands

Command Description
toggle-quotes:toggle Toggles the quote characters used for quoted strings between the configured Quote Characters (' and " by default).

Keybindings

Command Linux OS X Windows
toggle-quotes:toggle Ctrl-" Cmd-" Ctrl-"

Custom keybindings can be added by referencing the above commands. To learn more, visit the Using Atom: Basic Customization or Behind Atom: Keymaps In-Depth sections in the flight manual.

Configuration

Configuration Key Path Type Default Description
toggle-quotes.quoteCharacters string '" The characters toggle-quotes:toggle toggles between. No whitespace.

You can add language-specific settings for languages with more exotic string delimiters. For example, this setting in your config.cson will add backticks in JavaScript files, but not in other kinds of files:

".js.source":
  "toggle-quotes":
    quoteCharacters: "\"'`"

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, Atom's contributing guide will help get you started while the guide for contributing to packages has some extra information.

License

MIT License - see the LICENSE for more details.

toggle-quotes open issues Ask a question     (View All Issues)
  • almost 3 years TextEditor.module.exports.Object.defineProperty.get is deprecated.
  • over 3 years Add support for toggling selections
  • over 3 years Add support for javascript / es6 ` characters
  • almost 4 years It eats the characters below
  • almost 4 years Sometimes breaks when string contains backslashes
  • almost 4 years Doesn't work if a line contains multiple sets of quotes.
  • almost 4 years When adding a custom quote it doesn't cycle through all of them
  • almost 4 years Can't toggle quotes if line contains tabs
  • about 4 years Instead of escaping quotes, optionally reverse quotes.
  • over 4 years Toggle quotes doesn't work on invalid single-quoted string JSON values
  • over 4 years Add to Atom core?
  • over 4 years Add backtick as a quote
  • almost 5 years Suggestions
  • about 5 years Toggle quotes does not work in Plain Text buffers
  • over 5 years Multi-line quoted scope is broken
toggle-quotes open pull requests (View All Pulls)
  • Change keymap on linux and win32 plataforms
  • Update information
  • displayBuffer has been deprecated
  • Allow quote toggling in unrecognized (non-string as reported by the grammar) buffer areas
  • Determine the string scope selector dynamically
toggle-quotes list of languages used
Other projects in JavaScript