Skip to content

Commit

Permalink
replace __fish_urlencode with string escape
Browse files Browse the repository at this point in the history
We now have a builtin that can do URL escaping so use it. I can't find
any uses of our private `__fish_urlencode` function in any Oh-My-Fish or
Fisherman code so remove it.
  • Loading branch information
Kurtis Rader committed Jun 24, 2017
1 parent f3cb625 commit bb29f9f
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 66 deletions.
2 changes: 1 addition & 1 deletion doc_src/string.txt
Expand Up @@ -167,7 +167,7 @@ In general, special characters are special by default, so `a+` matches one or mo
\endfish

\fish{cli-dark}
>_ string escape --style=var 'a1 b2'\u6161
>_ string escape --style=var 'a1 b2'\\u6161
<bs>a1_20b2__c_E6_85_A1</bs>
\endfish

Expand Down
5 changes: 0 additions & 5 deletions po/de.po
Expand Up @@ -61324,11 +61324,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr "Befehlsspezifische Erweiterungen bearbeiten"

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
#, fuzzy
msgid "URL-encode stdin"
msgstr "Standardeingabe umbenennen"

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
#, fuzzy
msgid "Test if a non-switch argument has been given in the current commandline"
Expand Down
4 changes: 0 additions & 4 deletions po/en.po
Expand Up @@ -8114,10 +8114,6 @@ msgstr "Show current path"
msgid "Test if the token under the cursor matches the specified wildcard"
msgstr "Test if the token under the cursor matches the specified wildcard"

#: share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr "URL-encode stdin"

#: share/functions/__terlar_git_prompt.fish:23
msgid "Write out the git prompt"
msgstr "Write out the git prompt"
Expand Down
4 changes: 0 additions & 4 deletions po/fr.po
Expand Up @@ -60024,10 +60024,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr "Éditer les complétions spécifiques aux commandes"

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
#, fuzzy
msgid "Test if a non-switch argument has been given in the current commandline"
Expand Down
4 changes: 0 additions & 4 deletions po/nb.po
Expand Up @@ -56722,10 +56722,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
msgid "Test if a non-switch argument has been given in the current commandline"
msgstr ""
Expand Down
4 changes: 0 additions & 4 deletions po/nn.po
Expand Up @@ -56722,10 +56722,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
msgid "Test if a non-switch argument has been given in the current commandline"
msgstr ""
Expand Down
4 changes: 0 additions & 4 deletions po/pl.po
Expand Up @@ -57143,10 +57143,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr "Edytuj sugestie do określonej komendy"

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
msgid "Test if a non-switch argument has been given in the current commandline"
msgstr ""
Expand Down
5 changes: 0 additions & 5 deletions po/pt_BR.po
Expand Up @@ -61774,11 +61774,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr "Edit command specific completions"

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
#, fuzzy
msgid "URL-encode stdin"
msgstr "Rename stdin"

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
#, fuzzy
msgid "Test if a non-switch argument has been given in the current commandline"
Expand Down
4 changes: 0 additions & 4 deletions po/sv.po
Expand Up @@ -53577,10 +53577,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
msgid "Test if a non-switch argument has been given in the current commandline"
msgstr ""
Expand Down
4 changes: 0 additions & 4 deletions po/zh_CN.po
Expand Up @@ -57099,10 +57099,6 @@ msgstr ""
msgid "Update man-page based completions"
msgstr "编辑命令相关的补全"

#: /tmp/fish/implicit/share/functions/__fish_urlencode.fish:1
msgid "URL-encode stdin"
msgstr ""

#: /tmp/fish/implicit/share/functions/__fish_use_subcommand.fish:1
msgid "Test if a non-switch argument has been given in the current commandline"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion share/functions/__fish_config_interactive.fish
Expand Up @@ -262,7 +262,7 @@ function __fish_config_interactive -d "Initializations that should be performed
status --is-command-substitution
or test -n "$INSIDE_EMACS"
and return
printf \e\]7\;file://\%s\%s\a (hostname) (echo -n $PWD | __fish_urlencode)
printf \e\]7\;file://\%s\%s\a (hostname) (string escape --style=url $PWD)
end
__update_cwd_osc # Run once because we might have already inherited a PWD from an old tab
end
Expand Down
26 changes: 0 additions & 26 deletions share/functions/__fish_urlencode.fish

This file was deleted.

0 comments on commit bb29f9f

Please sign in to comment.