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

Customize filenames/extensions #33

Open
odcb opened this issue Mar 19, 2018 · 3 comments
Open

Customize filenames/extensions #33

odcb opened this issue Mar 19, 2018 · 3 comments

Comments

@odcb
Copy link

odcb commented Mar 19, 2018

Hi -- I love calendar-vim. Two requests:

  1. Would it be possible to specify the filename of the text files? At the moment, they are just the date number (e.g. 19.md) and rely on the directory structure for context. But when searching files outside the directory context, I get a lot of files all named the same thing (19.md, 19.md etc.). Could there be an option for ISO dates for filenames (YYYY-MM-DD)?

  2. Could we also select file extension? My files are markdown, but I prefer a .txt extension rather than .md, because preview handlers handle that better, especially on mobile.

Thanks.

@odcb
Copy link
Author

odcb commented Mar 20, 2018

Apologies -- forget number 2 -- had a look at the code and see there's a hidden option there --

let g:calendar_diary_extension = ".txt"

But number 1 is still on the wishlist!
Thanks.

@juanlufont
Copy link

I know this ticket is older than 3 years, but I have tried to implement point 1 in this PR: #40

@hotoo
Copy link
Contributor

hotoo commented Sep 5, 2021

see hotoo#3

and set vimrc

let g:calendar_diary_path_pattern = "{YYYY}-{MM}-{DD}{EXT}"

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

3 participants