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

nvPY in Windows replaces file names with character '_' when I really wanted space ' ' #83

Closed
magicnemo opened this issue Jul 31, 2013 · 3 comments

Comments

@magicnemo
Copy link

Maybe related to Issue #58.

E.g. Write "Instruction - Manual for Markdown" in a new note, when I exit nvAlt it has created Instruction_-_Manual_for_Markdown in the file system.

I found the problem in utils.py, there is a line in function get_note_title_file() saying replace ' ' with '_'. I don't know why, maybe some OS this works on can't handle space in file names?

Solution is to mark this row as a comment, after having done this I don't see the problem again.

    # Unchecked below row, don't know why it's useful to mess up file names??
    #fn = fn.replace(' ', '_')
    fn = fn.replace('/', '_') 
@dddw
Copy link

dddw commented Oct 25, 2013

yes, it's not handy (but not impossible at all) to have file names with spaces in linux.
Thanks for finding where the renaming is been done though.

@coreyp
Copy link

coreyp commented Feb 27, 2014

Hm, this seems like an important option to throw into the config, judging by the demand around here for syncable, cross-platform plain-text note files.

@yuuki0xff
Copy link
Collaborator

Added replace_filename_spaces option. See #206.

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

4 participants