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

Trouble with hyphens in filename #37

Open
pschmitt opened this issue Jul 10, 2023 · 2 comments
Open

Trouble with hyphens in filename #37

pschmitt opened this issue Jul 10, 2023 · 2 comments

Comments

@pschmitt
Copy link

Hi,

I've used this awesome plugin for a few years now and I finally found something wrong with it :)

So in a nutshell, given the files:

  • /home/pschmitt/.config/zsh/plugins/local/insta-360-link.zsh
  • /home/pschmitt/.config/zsh/plugins/local/insta360link.zsh
  • /home/pschmitt/.config/zsh/plugins/local/insta_360_link.zsh
# does not work
vim /home/pschmitt/.config/zsh/plugins/local/insta-360-link.zsh:7

# works
vim /home/pschmitt/.config/zsh/plugins/local/insta360link.zsh:7

# works
vim /home/pschmitt/.config/zsh/plugins/local/insta_360_link.zsh:7
@Rafflesiaceae
Copy link

Rafflesiaceae commented Jul 22, 2023

I can reproduce this locally.

@Rafflesiaceae
Copy link

Rafflesiaceae commented Jul 22, 2023

This rule

" - trailing dash, i.e. '-lnum-'
messes up your path:

/home/pschmitt/.config/zsh/plugins/local/insta-360-link.zsh

by mangling it to:

/home/pschmitt/.config/zsh/plugins/local/insta

This was introduced in 7936cba1.

I assume that this could be solved via either:

  1. Fixing the pattern (if possible)
  2. Removing the -\d- pattern
  3. Allow users to disable patterns like this individually via config variables

@wsdjeg

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

No branches or pull requests

2 participants