Skip to content

Tilde unexpanded in paths #18

Open
@Smattr

Description

@Smattr

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.

Activity

peri4n

peri4n commented on Oct 18, 2017

@peri4n

+1

bruno-

bruno- commented on Oct 19, 2017

@bruno-
Member

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @Smattr@peri4n@bruno-

      Issue actions

        Tilde unexpanded in paths · Issue #18 · tmux-plugins/tmux-open