Skip to content

BUG filenames with spaces #9

Description

@blaggacao

notes new test "My foo Note"

notes ls | fzf | xargs -o typora - trying to open "My foo Note" fails due to the spaces

Activity

  1. blaggacao commented on May 14, 2020

    @blaggacao
    Author

    Concrete example:

    notes ls
    /home/blaggacao/ghq/keybase/team/p1hq/notas/tickets/gitea-bot.md
    /home/blaggacao/ghq/keybase/team/p1hq/notas/minutas/Feedback EPs & Todos.md
    /home/blaggacao/ghq/keybase/team/p1hq/notas/tickets/k8s.md
    /home/blaggacao/ghq/keybase/team/p1hq/notas/tickets/kssh.md
    /home/blaggacao/ghq/keybase/team/p1hq/notas/tickets/goautodial.md
    /home/blaggacao/ghq/keybase/team/p1hq/notas/tickets/wireguard.md
    notes ls | xargs rg feedback
    /home/blaggacao/ghq/keybase/team/p1hq/notas/minutas/Feedback: No such file or directory (os error 2)
    EPs: No such file or directory (os error 2)
    &: No such file or directory (os error 2)
    Todos.md: No such file or directory (os error 2)
  2. blaggacao commented on May 14, 2020

    @blaggacao
    Author

    For a fix, in my opinion, I'd would be visually preferable if only the spaced part would get quoted, like so, in order to not disturb the column alignments of the folder parts:

    /.../notas/minutas/"Feedback EPs & Todos.md"
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions