sublimetext_indentxml icon indicating copy to clipboard operation
sublimetext_indentxml copied to clipboard

After installing, cannot use, "Indent XML" is greyed out

Open balihoo-cnorwood opened this issue 6 years ago • 5 comments

Installed per instructions but can't get it to work.
Tried on Sublime Text 3.1 and 3.1.1 on OSX

Specifically followed these from README.md

"chord" command Ctrl+K, Ctrl+F (this mean hold Ctrl, press K then press F, release Ctrl) and also available in "Selection" menu.

Crtl+K deletes my selection, so chord command doesn't work

Selection / Format menu shows several items, but cannot click on "Indent XML" because it is disabled (greyed out)

balihoo-cnorwood avatar Jun 01 '18 16:06 balihoo-cnorwood

Same here. It used to work, so I think this was caused by the 3.1 update.

wmbr avatar Jun 18 '18 21:06 wmbr

Same - I'm a first time user.

It would be useful it hovering over a disabled button would give useful information about why it is disabled.

VelizarHristov avatar Jul 06 '18 13:07 VelizarHristov

That is a tricky one. I don't think Sublime allows to show any extra information on hover on disable menu item. Probably the best thing to do is to show a little message in the status bar when plugin decides if command is enabled or not. I'll see what can be done.

Also plugin works fine in 3.1.1 so probably this is something specific to your setup?

alek-sys avatar Jul 16 '18 06:07 alek-sys

Make sure you have the document's syntax set to XML (View -> Syntax).

wmbr avatar Jul 25 '18 17:07 wmbr

I had a similar issue - an other plugin (A File Icon) added an XML (SVG) syntax, which turned it disabled.

Either an Enable/Disable Indent XML for current syntax could be added, and/or a setting, where the user can configure the languages for which indentation should be enabled.

mrmeszaros avatar Aug 02 '20 09:08 mrmeszaros