-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Invisible character (​
) in package names
#130
Comments
This is on purpose, as it allows long package names to wrap on small screens. https://github.com/wbond/packagecontrol.io/blob/master/app/templates/helpers/word_wrap.py |
This pattern is used on various online docs by various organizations, since they also run into long identifiers without spaces. |
Thanks for replying. I mentioned this, hoping that maybe it could be possible to remove it without breaking things. PS. For anyone interested, here is a userscript that removes the hidden character from the package title: // ==UserScript==
// @name packagecontrol.io - remove invisible character in package name
// @match https://packagecontrol.io/packages/*
// @grant none
// ==/UserScript==
var re = /\u200B/g;
var packageTitle = document.querySelector('#content > h1');
packageTitle.innerHTML = packageTitle.innerHTML.replace(re, ''); |
I haven't checked recently, perhaps there is a more modern CSS method that we can use now in 2021? This was originally added in probably 2014/2015. |
That would be great! |
Apparently, the |
I've noticed that there is this invisible character (
​
) in package names.For reference:
It occurs in words that are "combinations", e.g. SublimeLinter -> Sublime + Linter
Examples pages:
Just open the 1st one, rightclick the "SublimeLinter" title and press Inspect :
screenshot
If you select that text in your browser and press Copy (Ctrl+C)
then the copied string "SublimeLinter" contains the hidden character: screenshot.
[if you doubleclick the above string you'll notice that you can select only either 'Sublime' or 'Linter']
and that leads to getting no results when using it to search for the package in Sublime Text's Package Control manager.
e.g. I have installed SublimeLinter.
If I open ST3 Preferences | Package Control | List Packages
and paste the string "SublimeLinter" (with the hidden character) I'll get no results.
Using ST3 3211 x64 on win10.
The text was updated successfully, but these errors were encountered: