-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make line counter continuous (not restart at 0 for each new section) #1096
Comments
No, no, no, Your request is unreasonable, your needs are not in line with the convention. Since it is a segmented editor, then each segmented editor must be relatively independent and should not be coupled. You can use PS: The Toc feature will be added to the segment editor (it's still work-in-progress.), so you can easily jump/go-to when it release.
I think it is very necessary for you to systematically test the shortcuts one by one, and systematically organize and record them.I did this at the time, so now I am familiar with it and it is easy. Since you want to use Stylus-editor, you should be familiar/organize all the shortcuts. All shortcutsCtrl-Alt-Down | addCursorToNextLine PS: I can write all shortcuts for Stylus-WiKi |
The behavior you're requesting is standard in usercss format, so maybe you should reconsider. In the traditional format, each section is a different editor, so it'd be weird if they behaved the way you're asking. |
@decembre Done, if necessary see here: https://github.com/openstyles/stylus/wiki/Hotkey-shortcuts |
Here something which can be useful (i appreciate the representation of the hotkeys): |
Technically it's possible because CodeMirror offers such a feature internally but our code makes assumptions about the first line number being 1 in so many places that it'll take time and effort to find and fix all of them. This is the first time someone suggested such an idea, AFAIK, and it's not like this is a must-have improvement, rather a niche feature that we could implement as an option. But then again, we already offer a suitable solution - usercss mode - that works better if you need to compare with the external source a lot. |
Thanks for your attention... You work hard for us! Yes, i need test more "usercss mode". But slowly, i try to adopt the stylus editor: |
Usercss mode is much more similar to the classic Stylish editor because it's a single editor with the entire style. You don't have to use any special features of usercss mode. Simply add a comment at the beginning with |
Tested:
I see some problems (for me...): B - If i need to export as "Mozilla format" (to easily copy past in the Stylish editor), Yes , i can select the CSS code only with my mouse or copy all and delete the top . But if their is another way to do it (maybe a ... shortcut ?) it should be interesting. |
@decembre I think you have the syndrome of difficulty in choosing, and you are very struggling...
For UserCSS, it is very powerful, It supports several different variables, so it can be show an ⚙ button on Popup for configuration , and you can make various customizations. My personal usage is that the both work together perfectly , for a website, first use the classic CSS editor to write basic CSS, If additional customization is needed, I will add UserCSS userstyles.
Now that UserCSS can meet your needs, why should you think of it as Stylish?
This is completely normal and reasonable, nothing wrong. do you know
This is because you have not fully understood UserCSS, The UserStyle section of UserCSS contains metadata (what you said), as well as declarations of If the code contains variables, etc., the e.g. It can also be used in UserCSS code, but it cannot be used in classic CSS.body {
if theme == dark {
#header {background:#000}
}
else if theme == light {
#header {background:#fff}
}
}
|
You can simply copypaste everything along with the usercss header. It's just a comment anyway so having it in another place shouldn't hurt. If you save such a style as |
I know how Stylus is more powerful than Stylish. But for my usage, i prefer the unique editor of Stylish 2 that i use. I use a lot the "Go to line" function - the Ctrl+G in Stylus Editor (thanks dnknn): Stylus with Firebug is not so practical than Stylish2 and Firebug (This old and unmaintained Firebug with its FirePath companion) . Here for the same Userstyle, 2 screenshots of what i said: Stylus with Firebug (Userstyle in UserCSS): Stylish2 and Firebug (Same Userstyle but not UserCSS): In fact, i hope something similar: 1 - Quickly find the good line number than i watch in Firebug 2 - And like i notice in my tests, read the Userstyle Name near the matched selector in Firebug: About the infos provided in Firebug, i don't find how to solve that. I have posted a bug about this problem a long time ago with screenshot for comparison: But that's not at the Firebug Level. by example (extract from the Bug):
Depending on how the styles are now embedded into the page Well, certainly i don't fully understand something...... |
He's clinging to an old, buggy browser, with a bunch of deprecated, unsupported extensions, and reminiscing about the good old days when it all worked the way he liked. This is getting annoying, guys. No more unsolicited essays. No more comparisons to the old, deprecated XUL version of Stylish, or any other unsupported extensions. @dnknn this is the last warning about using random, unnecessary emojis. From now on, these posts will simply be deleted. |
FWIW, here's a trick I use when I need to change a lot of CSS: copypaste the entire code section into the temporary |
When for a large userstyle with many sections, i use the Stylus normal editor (not UserCSS), it is not easy to find a particular line by its number, because the code is split in many section with its line counter:
It make difficult to compare a code in an other editor and the stylus editor.
Can you add the ability to have a continuous line counter?
PS:
I can't find a "go to line" function in Stylus:
What's is shortcut ?
The text was updated successfully, but these errors were encountered: