GithubHelp home page GithubHelp logo

atom-wrap-with-anything's Introduction

wrap-with-anything

Wrap text selections instead of replacing them when certain characters are typed.

Screenshot of inserting punctuation around words

The Atom builtin package bracket-matcher provides a feature where if you have text selected and type any kind of opening bracket or quote, the selection is wrapped instead of being replaced.

This package (wrap-with-anything) extends this feature to allow an arbitrary list of characters which will trigger this wrapping behaviour. The default list is *, ~, /, _, and space.

Char Reason
* Mardown emphasis (single) and strong emphasis (double)
_ Mardown emphasis (single) and strong emphasis (double)
~ Mardown strikethrough (when double)
/ Used for italics in various markups. Also delimits regular expressions in many languages
(space) Useful for padding things out

You can customise this list in the settings.

atom-wrap-with-anything's People

Contributors

n3dst4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-wrap-with-anything's Issues

Keep the selection

Hallo. Here is some kind of bug report:

Steps to reproduce:

  1. Select some word
  2. Press ". The word be wrapped with ". Now, press Ctrl-Z to undo this wrapping. You will see that the word is still selected.
  3. Repeat step-2 with plugin installed and use _ instead of " for wrapping. You will see that after you do the "undo", selection will disappear.

where to customize?

This may be self evident, but I can't find it.
I can see the readme that says.

You can customise this list in the settings.

But I do not see any settings. Other than the readme.

image

Thanks!

Option to disable wrapping of multi-line selections

Hello.

I often want to replace newline (and indentation) with a space, so collapse them into one line, but I'm just getting wrapping with spaces, which I use sometimes for simple structures like {a: 42}.

So, I think, I don't need for wrapping multi-lines in any time. And we can add an option for this. Maybe even enabled by default.

Option to unwrap

It would be nice to have an option to unwrap as well as wrap.

  • Before: _text_
  • After: text

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.