sanusart / atom-wrap-in-tag Goto Github PK
View Code? Open in Web Editor NEWSimplest package for Atom editor that wraps HTML tag around selection
Home Page: https://atom.io/packages/atom-wrap-in-tag
License: MIT License
Simplest package for Atom editor that wraps HTML tag around selection
Home Page: https://atom.io/packages/atom-wrap-in-tag
License: MIT License
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!
Hi!!
When I use the shortcut ctrl+alt+w I'm getting a interrogation sign ("?").
When I click in packages tab and go to Wrap in Tag tab, the function works properly.
What I'm doing wrong?
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. :)
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?
hello i have some trouble to set your package (i'm novice).
When i use the ctrl-shift-w, it close the window (Atom).
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 textAlt+Shift+1 wraps text into: some text
Alt+Shift+2 wraps text into:
I think having 10 templates with shortkeys in settings would be enough.
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.
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>
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 closes my Atom.....
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
<div> <p>
blah blah blah
</p>
</div>
where the final
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.