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

Opens existing notes as new file with .md extension #11

Open
counterapparatus opened this issue Apr 4, 2024 · 2 comments
Open

Opens existing notes as new file with .md extension #11

counterapparatus opened this issue Apr 4, 2024 · 2 comments

Comments

@counterapparatus
Copy link

Hi,

I am really exciting about setting up and using Shell Velocity but I've run into a problem that might just be user error.

I have set SHV_PATH to my existing NVALT directory. When I run 'shv' I see all the files and the search works fine, however when I select the file it opens a blank document with an additional .md extension. For example if I select reading-notes.md it opens reading-notes.md.md which is empty.

@counterapparatus
Copy link
Author

Okay, I've just realized that the problem is that the majority of my files have spaces in the filename because of the way nvAlt saved my files. Thus, when I open reading notes.md, it tries to replace the space with a - and gives it a new file name (reading notes.md -> reading-notes.md.md)

@saccarosium
Copy link
Owner

Hi,
I need some more information to understand better the problem:

  • OS
  • PICKER (fzf, dmenu, etc)
  • SHELL (you can check with echo $SHELL)

Also yes having white spaces in the filename can definitely make things behave weirdly. I'd suggest for your sanity to rename your files to have underscores or dashes instead of spaces. It will make thing much easier to process things on the command line. I suggest you to look into vimv to bulk rename files.

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