-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Replace percent-encoded characters in URL Code Hint List with regular characters #5205
Comments
Comment by redmunds This look pretty good, but I noticed a couple quirks. But, I found a bug. If I type a % that matches a char that should be encoded, then that entry stays in the list (as intended). But, if I hit Enter to insert entry into page, it inserts an extra (duplicated) char at the beginning. I'm guessing that the % is not ignored when determining what to insert in the page. Another thing I noticed is that not all encoded chars seem to be matching. When typing %20 it matches with a space char in the file name, but when typing %A3 it does not match with ã. Done with review. |
Comment by lkcampbell
For the second problem the encoding of ã should be %C3%A3. That's what I get using this online tool: http://meyerweb.com/eric/tools/dencoder/ Can you test %C3%A3 and make sure it is working? |
Comment by redmunds The name of the file I'm using is "high ascii ãx.css". For the first case:
Result: For the second case: Ooops, I didn't notice the double %-entries being inserted. It's kind of weird how ã is matched in the list as I'm typing the first part (i.e. "%C3"), then goes away after typing the second % (i.e. "%C3%"), then shows up again after typing the complete encoding (i.e. "%C3%A3"). But this is probably pretty rare that anyone's going to do this, so if it's not an easy fix I can live with it. |
Comment by lkcampbell
|
Comment by lkcampbell
If I can get the percent-encoded matching working this weekend, I will push another commit. If not, I will file a low priority bug so we can document the problem. |
Comment by RaymondLim
|
Comment by lkcampbell
This is the kind of problem I have been dealing with trying to get this fix to work. Every time I fix it in one test case, a different problem pops up. I'm sure there is a reasonable solution out there given a bit more time and a clearer picture of what scenarios we want to match correctly versus scenarios we don't care about, for example, should we care about users mixing encoded characters and regular characters?
|
Comment by lkcampbell And just a point of clarification, I do believe there is a good solution to the tricky bug, we just haven't found it yet, partially because we haven't clearly defined what the behavior of the fix should be. My concerns have more to do with having a medium priority, easy to fix bug mixed in with a low priority, more difficult bug. I think the best solution is to separate them out so we can get this PR merged and the bug closed ASAP. I can document the second bug and assign it to myself as a longer term solution. |
Comment by redmunds
I think the typing percent-encoded case is rare, so I'm ok with doing nothing and listening to the Community for feedback. Of course, you are welcome to create an issue for it, and even continuing to work on it. |
Comment by lkcampbell
|
Issue by lkcampbell
Thursday Oct 24, 2013 at 22:15 GMT
Originally opened as adobe/brackets#5677
This PR fixes issue #5357.
lkcampbell included the following code: https://github.com/adobe/brackets/pull/5677/commits
The text was updated successfully, but these errors were encountered: