Skip to content
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

Tilde unexpanded in paths #18

Open
Smattr opened this issue Jul 20, 2016 · 2 comments · May be fixed by #58
Open

Tilde unexpanded in paths #18

Smattr opened this issue Jul 20, 2016 · 2 comments · May be fixed by #58

Comments

@Smattr
Copy link

Smattr commented Jul 20, 2016

Steps to reproduce:

$ ls ~/.tmux.conf
/home/smattr/.tmux.conf
$

Now go into copy mode, highlight ~/.tmux.conf and hit Ctrl+o.

Expected behaviour: My Tmux configuration is opened in Vim.

Actual behaviour: Vim opens a new file "~/.tmux.conf"


The cause is pretty clear (quotes around {} in the xargs expansion), but removing the quotes is clearly not correct. Digging a bit deeper, I learned that tilde expansion is much more complicated than I was aware (e.g. http://stackoverflow.com/a/29310477). Do you have any ideas how to solve this cleanly? Apologies if I have misdiagnosed the problem.

@peri4n
Copy link

peri4n commented Oct 18, 2017

+1

@bruno-
Copy link
Member

bruno- commented Oct 19, 2017

Hi,
if I remember correctly we added argument quoting to enable filenames with spaces.
I'm not sure if manual tilde expansion is worth it.

@jyn514 jyn514 linked a pull request Jun 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants