Giter Site home page Giter Site logo

vscode-htmltagwrap's People

Contributors

bgashler1 avatar chrisdias avatar gdziadkiewicz avatar hmigneron avatar msftgits avatar spoofardio avatar

Stargazers

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

Watchers

 avatar  avatar

vscode-htmltagwrap's Issues

VSCodium support

Could you please release this extension for use in VSCodium as well?

command 'extension.htmlTagWrap' not found

I am on a Mac and when using Option + W, a warning message from VSCode appears: command 'extension.htmlTagWrap' not found.

image

I tried restarting VSCode, uninstalling and installing the extension again, but it did not help.

I used Help + Toggle Developer Tools to open the console. This issue appears when I use the command:

Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform

image

tag with attribute

This is probably more an enhancement request. I have the defaut tag set as code, since that's the one I most commonly need. However, for localization reasons, we have to add the attribute translate="no" to all code tags.

So I was happily surprised to see that I could set the default tag to code translate="no"!

But then saw that the attribute was added to both the start and end tag.

Don't know if that is easy to overcome, but thought I'd ask.

Thanks,
Robert

Extension issue

  • Issue Type: Bug
  • Extension Name: htmltagwrap
  • Extension Version: 0.0.7
  • OS Version: Darwin x64 18.2.0
  • VSCode version: 1.30.0
{
	"activationTimes": {
		"startup": false,
		"codeLoadingTime": 5,
		"activateCallTime": 0,
		"activateResolvedTime": 0,
		"activationEvent": "onCommand:extension.htmlTagWrap"
	},
	"runtimeErrors": [
		{
			"name": "TypeError",
			"message": "Cannot read property 'text' of undefined"
		},
		{
			"name": "TypeError",
			"message": "Cannot read property 'text' of undefined"
		},
		{
			"name": "Error",
			"message": "TextEditor#edit not possible on closed editors"
		}
	]
}

htmltagwrap incompatible with Git Lens extension

From @setilikim on June 23, 2017 17:56

I am using the Git Lens extension and the html tag wrap command (opt+W) is being overridden. It would be nice to have a setting available so the tag wrap command could be changed in case of incompatibility with other extensions or personal preference.

Copied from original issue: microsoft/vscode-htmltagwrap#11

Is this project dead?

It seems that last commit was made in 2017, should we be worried that the project is dead?
Should this project be forked into a new project or should @bgashler1 add maintainers to this project?

Empty closing tag when marking with keyboard

When using only keyboard to move the cursor and marking text, the closing tag created is empty every second time.

Example steps:

  1. Mark a line and press Alt-W. Line is wrapped correctly
  2. Use arrow keys to move to the next line, and mark it using for example Shift+Home/End and press Alt-W. Closing tag ends up empty (</>)

Using undo fixes the closing tag.

This does not happen when using the mouse to mark text.

Other than that, I love the extension!

PR: #7 Support for multiple selections

From @hmigneron on October 31, 2016 15:40

This pull request adds support for multiple selections.

Multiple selections work the same way single ones do : inline tag wrap is supported as well as multiline "block" tag wrap. We can also have a mix of the two.

multi-selection

The pull request also addresses the bug with empty selections (#6) which are now supported (both with single or multiple selections).

Thank you !

Copied from original issue: microsoft/vscode-htmltagwrap/pull/7

Alt W doesn't work

I'm on a Mac and option w replaces highlighted text with a funny looking underlined dot
I can't find any instructions on how to proceed.

pressing space with autoDeselectClosingTag removes part of the tag

To produce the bug

  1. you have a sentence: a more detailed look
  2. autoDeselectClosingTag = true
  3. select a string detailed
  4. press alt+w -> wrapping the string: a more <p>detailed</p> look -- good
  5. type span -> a more <span>detailed</span> look -- good
  6. press space -> a more <spn >detailed</spn > look -- WRONG, you can see it removes part of the tag

Pasting html tag content error

When you past a tag, all the content is pasted into the closing tag, even after the space.

For example, if I have span class="comment" on the clipboard, and press alt+w then ctrl-v, I get this:

<span class="comment"></span class="comment">

Last character on autocomplete not rendering

When I select text and add a tag, then enter a component name and hit tab to autocomplete, the closing tag is missing the final character, like so:
<MyComponentName>/*stuff*/</MyComponentNam>

Attach a different key-binding to invoke vscode-htmltagwrap

Since am using "Alt + w" to invoke the "search & replace" feature of vscode, Am wondering if there is a separate setting i can use to attach a different key-binding to invoke your plugin.
NOTE: i.e Pressing "F7" to invoke plugin instead of using "Alt + w"

HTML Wrap selection with tags and adding class adds it to both tags

From @aeschli on April 21, 2016 21:18

From @mizujin on April 21, 2016 13:35

  • VSCode Version: 0.10.11
  • OS Version: Windows 8

Steps to Reproduce:

  1. In an HTML document, make a text selection to wrap and using Alt + W to wrap them with tags
  2. Define the tags and immediately continue with a class statement.
  3. class="" is added to both starting/ending tags.

Copied from original issue: microsoft/vscode#5607

Copied from original issue: microsoft/vscode-htmltagwrap#3

anchor around email

When you try to wrap an email address with an anchor tag, it first puts mailto:[email protected] in the href attribute, but after pressing enter to accept it, it ends up as an empty href. It's a small thing, but would be really helpful if it worked properly.

Thanks for the amazing addon.

Undo Bug

There is an issue when you wrap code it defaults to a

tag then you change to say a div then you press ctrl +z to undo and one of the steps in the undo is changing your div back to a p tag and when this happens a random div that my newly created tag is inside of also changes to a p tag.

Closing tag error when selection ends on blank line

In Visual Studio Code version 1.28.2:

If the selection ends on a blank line, the cursor for the closing tag is positioned in the wrong place:

image

If the file ends on the last line selected, the closing tag cursor doesn't show up

image

Deleting 2nd Part of selection after wrap

When I wrap text with a shortcut, about 30% of the time it will delete the p in the closing tag. I have disabled all other plugins in VS Code and this is still happening. Any help would be appreciated.
Screen Shot 2019-03-26 at 6 52 43 PM

Can I have multiple tags?

Can I choose between multiple tags? For example in same cases I might want to wrap a selection with P, other times it might be a DIV

Glyph area

Hello, i couldn't find an email to get in contact with you
I've seen this gif that you posted in a vscode issue about the glyph area:

51454928-e5ee-11e5-8416-16a62c9a12db

Do you mind telling how you styled the folding icons [+] [-], the line width, color, place, like on your gif? It looks almost the same than on Visual Studio which was exactly what i was trying to achieve.

I mean:
image

I have download an extension named "Minimalist Product Icon Theme" but it looks weird, also looks where the line is placed:
image

under "app" instead being placed under the [-] icon like on your gif.

Is this part of any other extension?

From a few days ago, VSCode suddenly started editing my end tags while I type the open tag. It gets in the way more than it helps (like deleting > of end tag when I hit delete key on the open tag). Is this part of any of the following extensions?

image

If not, I'm sorry to bother you guys. It might be unrelated new feature elsewhere. If yes, let me know. I would file a few bugs.

Thanks

Extension issue

  • Issue Type: Bug
  • Extension Name: htmltagwrap
  • Extension Version: 0.0.7
  • OS Version: Darwin x64 18.7.0
  • VSCode version: 1.40.1
{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 30,
		"activateCallTime": 3,
		"activateResolvedTime": 18,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "vscode.extension-editing",
				"_lower": "vscode.extension-editing"
			},
			"activationEvent": "onLanguage:json"
		}
	},
	"runtimeErrors": []
}

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.