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

Can't jump a folder with [ or ] in it #133

Open
slacksystem opened this issue Feb 9, 2023 · 0 comments
Open

Can't jump a folder with [ or ] in it #133

slacksystem opened this issue Feb 9, 2023 · 0 comments

Comments

@slacksystem
Copy link

Get an error when trying to jump into a visited directory with [ or ] in the name i.e. C:\example\[a]directory\.

Steps to reproduce:

  • Install ZLocation
  • Traverse into a directory with a bracket in the name
  • Leave the directory
  • Enter z <part_of_directory_name>

Example:

PS C:\example> dir

    Directory: C:\example

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----            2/9/2023  3:23 PM                [a]directory

PS C:\example> cd '.\`[a`]directory\'
PS C:\example\[a]directory> cd ..
PS C:\example> z directory
WARNING: There is no path C:\example\[a]directory on the file system. Removing obsolete data from database.
WARNING: Cannot find matching location
PS C:\example> dir

    Directory: C:\example

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----            2/9/2023  3:23 PM                [a]directory

PS C:\example>

Expected behavior:

It would open the directory that was referenced

Actual behavior

Error:

WARNING: There is no path C:\example\[a]directory on the file system. Removing obsolete data from database.
WARNING: Cannot find matching location

Please let me know if there is any additional information I can provide that would be helpful

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

1 participant