-
Notifications
You must be signed in to change notification settings - Fork 233
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
[Suggestion] Remove spaces/tabs between preference name and value #332
Comments
As a counterpoint, having those spaces/tabs helps in readability. Would it not be better merely proposing that there be say, 12 spaces between the comma and the value of the key for all keys? |
For that I would suggest using Notepad++. It automatically assigns the comments/prefs and values a different color and thereby greatly improves the readability of the the whole user.js file. But having a fixed amount of spaces would also be a solution that I could work with. |
Related issue: #243 |
It is indeed because of the readability. I like to have the values aligned.
I don't understand. How does it help? Replacing should be easy enough anyway. |
Hey Pyllyukko, yeah I figured that was the intention and it's great that everything seems perfectly alligned on your terminal screen, but sadly it's not the case on my end and looking at issue #243 it seems I'm not the only one.
If there isn't a space between the pref and value OR a fixed amount of spaces I can create a script that searches for that specific pref with value and then modifies it to the value I need for certain web services. It would make it easier to always use your User.js as the baseline script. update: OR is there someway to create another .js script that always overrules user.js? That way I would be able to put my custom changes in that. |
Isn't that what regular expressions are for? :) e.g.: I would like to come up with a proper clang-format config that would take care of all of this. But with the alignment :) |
Looking at your regular expression I have the feeling I just got schooled :) |
Either add a section at the end of the user.js - because it is parsed in order, so anything listed twice, the last instance is the one that is applied (but would mean you need to copypasta it back in all the time .. boring!) .. or ... [even better] use a Read the link, there are caveats |
Yes! now I can just download this user.js and add my own custom settings. Thanks for the info/links :) |
So not an issue but more a quality of life improvement for me and hopefully others as well.
I've been using this user.js for a while now and also changed and added some preferences (also non security related prefs) because I'm using some online services that require changes to your user.js.
For me (and hopefully others) it would make it alot easier if the values don't have tabs/spaces between the preferences (example:) user_pref("security.ssl3.dhe_dss_camellia_256_sha",false); because it would allow me to do quick replace actions for the complete lines (including the value).
Now I can't because the space seems to differ between preferences and their values (even when I look on this site) and it seems when I download the file the formatting also differs when I'm looking at it on Notepad++.
Hope you consider it and keep up the great work!
The text was updated successfully, but these errors were encountered: