5digits / dactyl

Pentadactyl and other related Gecko extensions
Other
469 stars 98 forks source link

Yank: URLs with non-ASCII symbols are escaped despite the option in about:config #43

Open selurvedu opened 9 years ago

selurvedu commented 9 years ago

In Firefox there is a preference in about:config called network.standard-url.escape-utf8 which disables escaping non-ASCII characters when copying URLs. When y is pressed, the escaped URL is always yanked despite of that preference.

I solved this for myself using this map snippet, but I skipped the util.losslessDecodeURI part because it ignores the about:config preference too, so my map line in .pentadactylrc looks like this:

map y -js dactyl.clipboardWrite(options.get("yankshort").getKey(buffer.uri) && buffer.shortURL || buffer.uri.spec, true)

This issue was reported earlier, and a patch was proposed, but Google Code issues are now all gone – by the way, why? The project status can be unset from 'Moved' on Google Code so all the issues are viewable again.

l29ah commented 7 years ago

vimperator has an option "yankencodedurl", but it's apparently absent in pentadactyl :(