commands taking a filename should expand home dir (tilde)
See original GitHub issueSteps to reproduce the problem:
- Open a flow on the response tab.
- Press “b”.
- When prompted for a filename, enter
~/example
.
This says “No such file or directory”. Entering “/home/username/example” works.
System information
Mitmproxy: 3.0.3 Python: 3.6.4 OpenSSL: OpenSSL 1.1.0g 2 Nov 2017 Platform: Linux-4.15.10-1-ARCH-x86_64-with-arch
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Expand tilde to home directory - path - Stack Overflow
My program should be able to handle absolute paths as well as relative paths. My problem is that I don't know how to...
Read more >bash - How does using the tilde work as a shortcut to my home ...
~Desktop will expand to home directory of user Desktop , if such a user exists ... It is taken literally as a file...
Read more >Tilde Expansion (Bash Reference Manual) - GNU.org
The following table shows how Bash treats unquoted tilde-prefixes: ~ The value of $HOME.
Read more >Expand Tilde Paths in Bash and Python - Nicky Marino
Sometimes it's necessary to reference files in a script using ~ . ... the ~ is not expanded to the home directory (such...
Read more >Path::ExpandTilde - Expand tilde (~) to homedir in file paths
This module uses bsd_glob from File::Glob to portably expand a leading tilde ( ~ ) in a file path into the current or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue.
Tilda support for commands at this moment.
W
b
w
e
L
L
S
r
R
w
shift+\
I’ll fix this.
It doesn’t; would be nice if it did.