openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.47k stars 305 forks source link

[Feature Request] Extend editor with buttons for auto !important / go to the line / Comment or uncomment etc... #676

Open decembre opened 5 years ago

decembre commented 5 years ago

I keep Stylish only because i can use an old addon which extend its edit capacity: Stylish Editor²: [(https://sonco.synthasite.com/stylish-2.php)]

Edit my userstyles became more easy with it. It add usefull button for:

It add too some Input for:

It should be great if you can add these functions to your editor...

Here a Screenshot of Stylish Editor Modified:

stylish editor 2 - buttons request - 2019-02-27_013849

narcolepticinsomniac commented 5 years ago

We've discussed an editor button bar in the past, but I don't think we've ever actually opened an issue for it, so this one can be it. It's a good idea, it just has never been a priority. If you're not aware, almost all of those functions are currently available as keyboard shortcuts with optional keymaps:

keymap

Not sure how 'auto !important' worked, but it's kinda included in auto-complete:

auto

I used to prefer buttons as well, but shortcuts are actually much more convenient once you acclimate. An editor button bar would still be a cool option though, and we could probably add a couple little features which aren't currently available.

decembre commented 5 years ago

Thanks for the infos ! I am not a big fan of shortcut (yes, need practice) but it's a good alternative to nothing. Stylus became very good (and complex in the same way), but it follows the right side. That's a good news. Wait and see.....

dnknn commented 4 years ago

I personally oppose this suggestion, there is no need to add editor button bar, this makes the page UI cluttered and adds complexity, and this is a web-editor, not a client-editor..

I am not a big fan of shortcut (yes, need practice)

Instead, you should be familiar with some of the most commonly used shortcuts. It is more convenient and more efficient and more directly , When you get used to it, you will fall in love with shortcuts...

narcolepticinsomniac commented 4 years ago

People usually dig up old issues they support, and wanna bring attention to. I'm not sure what you hope to accomplish by disagreeing with an issue which hasn't even been mentioned in a year.

Editor toolbars would be a fine feature, they've just never been a priority. Of course we'd either hide them by default, or provide an option to do so.

decembre commented 4 years ago

Haa.. thanks narcolepticinsomniac ! Maybe possible in future version ? "The "Stylish Editor²" i use, as a clever settings panel, where we can chose what icons we want and in which place / order we want put it. It should be great and possible, with a fixed header like i tested in: Stylus Editor: Fixed Header

In the same idea, "Stylish Editor²" give the possibility to edit the auto " !important ": In stylus when typing"" ! " it write it without the semi-colon. I prefer with semi-colon: No possibility to forgot it, not need to extra typing . PS: I use a lot: