Git Product home page Git Product logo

atom-wrap-in-tag's People

Contributors

fabioantunes avatar sanusart avatar theofruitrouge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atom-wrap-in-tag's Issues

Alt+Shift+W and then Space removes default tag (p) in <p>

After wrapping a selection and then pressing Space, the default p in <p> disappears (i.e. we get < >).
You might wish to have the default behavior ("Hit spacebar key to continue typing attribute after the opening tag.") working properly for the default tag too.

thanks!

Add parameters to tag too like in SublimeText

This is a great package, but it would be much better if it worked just like in SublimeText. For example, if I wanted to add a class to the tag too, I keep on typing after the tag "div class...", right now, the text gets copied to the closing tag too. How it works in SublimeText is, when you hit space after the tag, what you type next is no longer being copied to the closing tag. Also, when you hit the Esc button, the cursor goes back to the starting tag, not the ending tag like in this package.

Anyway, just my two cents. If you incorporate these things, this package will be much more useful. :)

Multiple keyboard layouts issue

Not actually a bug but a required for users who have multiple keyboard layouts installed.

If any other (Ukrainian for instance) layout is chosen, the wrapping doesn't work. The W appears to be Ц symbol so I guess this is the reason for it to be ignored. Could it be improved please?

Wrap in tag with different tag templates

Hi!

Cool project.
It would be useful to introduce tag template in case if I want to tag with class. For example

some text

or some text
Also, it would be nice to add shortkeys for each tag template. For example:

Alt+Shift+1 wraps text into: some text
Alt+Shift+2 wraps text into:

some text

and so on.

I think having 10 templates with shortkeys in settings would be enough.

multiplying tags

Every time I uninstall/disable the package, it multiplies how many different wraps are created. After trying this several times in search of a solution, it does this:

<<<<<p>p</p>>p</<p>p</p>>>p</<<p>p</p>>p</<p>p</p>>>>p</<<<p>p</p>>p</<p>p</p>>>p</<<p>p</p>>p</<p>p</p>>>>>test</<<<<p>p</p>>p</<p>p</p>>>p</<<p>p</p>>p</<p>p</p>>>>p</<<<p>p</p>>p</<p>p</p>>>p</<<p>p</p>>p</<p>p</p>>>>>
Each time I undo it removes the latest one only, so it would take many undos to get rid of all these.

This was triggered by an attempt to change the shortcut keys, which didn't work as expected, so I attempted to uninstall/reinstall to get back to the default settings, which is when this started.

escape inline-autocomplete:cycle

After I enter a tag, lets say: <span> I want to press esc to cancel the double insertion points, but instead it autocompletes to content inside the document - changing the closing tag </spanner>

  • using the inline-autocomplete plugin, so that I get textmate like behaviour ( press esc to auto-complete from current doc )

Multi-select wrap in tag bug

I thank you for your contribution to Atom. When I tried using this package I ran into a bug that if it wasn't present would be a perfect solution for the elusive wrap multi-selection in tag for Atom.

US Toll Free:<br />
US Direct:<br />
<br />
Australia Direct:<br />
<br />
France Direct:<br />
 <br />
Germany Direct:<br />
<br />
India Toll Free:<br />
<br />
Netherlands Direct:<br />
<br />
Singapore Toll Free:<br />
<br />
United Kingdom Direct:<br />
<br />
Hong Kong Direct:<br />

I needed to select the text and wrap in a strong tag.

<strong>US Toll Free:</strong><br />
<strong>US Direct:</strong><br />
<br />
<strong>Australia Direct:</strong><br />
<br />
<strong>France Direct:</strong><br />
<br />
<strong>Germany Direct:</strong><br />
<br />
<strong>India Toll Free:</strong><br />
<br />
<strong>Netherlands Direct:</strong><br />
<br />
<strong>Singapore Toll Free:</strong><br />
<br />
<strong>United Kingdom Direct:</strong><br />
<br />
<strong>Hong Kong Direct:</strong><br />

However when I selected the text to be wrapped and added the tag to the multiple selections which worked by the way however it replaced the text as shown below.

<p>Hong Kong Direct:</p><br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<p>Hong Kong Direct:</p><br />
<br />
<strong>Hong Kong Direct:</strong><br />

It replaced all the items with the last text item and also only allowed the tag to be added to the last item selected.

Alt-Shift-W applies multiple tags at once

When selecting a block of text and entering Alt-Shift-W on the keyboard, multiple tags are applied at once. Im using Atom 1.14.4 and ato-wrap-in-tag version 0.6.0 on a Mac.
screen shot 2017-03-14 at 8 31 21 am

Work with block elements

I'd like to see this work cleanly with multi-line elements. That is, it should change this:

    <p>
      blah blah blah
    </p>

to:

   <div>
     <p>
       blah blah blah
     </p>
   </div>

when the 3 lines are selected and you type

. Right now, it just kind of makes a mess of things:

      <div>    <p>
      blah blah blah
    </p>
 </div>

where the final

is flush left in the file.

Keybinding options

In Sublime, my keybinding for this was ctrl-shift-w, but I can't work out how to customise this package to do that. Is it possible?

Work with multiple selects

This is a great package for Atom thank you, I would love it to be able to handle multiple selects, so if you select multiple strings and then call this package you can then surround them in the desired tag.

At the moment it wraps all selections in a

tag and then when you type the tag you want it only updates the last one.

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.