mattn / calendar-vim Goto Github PK
View Code? Open in Web Editor NEWcalendar vimscript
Home Page: http://www.vim.org/scripts/script.php?script_id=52
calendar vimscript
Home Page: http://www.vim.org/scripts/script.php?script_id=52
If adding folding in .vimrc:
set foldenable
set foldmethod=indent
the calendar will have folding and look not nice!
Is there any plan for calendar-vim to sync with google calendar in the future? I love this plugin and I'm using google calendar too, I wish that will be combined together ๐
Error detected while processing BufLeave Auto commands for "*Calendar":
E121: Undefined variable: b:sav_titlestring
E15: Invalid expression: b:sav_titlestring
Press ENTER or type command to continue
Hi Yasuhiro,
thanks for your plugin, it is exactly the one I have been looking for. When I'm on a day in the calendar view window and press it will save the notes for the day in $HOME/diary
. Is it possible to add an option which let me decide where I want to have this folder. Of course I can use a symlink for this but I want to have the configuration in my vim settings.
Best regards from Berlin,
Matthias
This plugin is included in Debian's vim-scripts package, and we assumed at the time the plugin is licensed compatible with Vim. However, since there's no explicit declaration, that was an invalid assumption. Please clarify the situation so we can determine if or how the packaging needs to be changed.
When I open calendar-vim in vimwiki, it opens such that it is too narrow to display all of the columns. Is there a configuration variable that I can set in my .vimrc file to correct this?
Thanks
Hi -- I love calendar-vim. Two requests:
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)?
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.
Hi,
Thank you for this plugin :) Is it possible to show the calendar on the right?
vim version the mac : VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 10 2017 20:07:49)
latest calendar-vim plugin.
question; this app crawls very slowly on mac but runs speedily on my ubuntu linux computer. any ideas why the discrepancy?
in addition i see colors disappearing very shortly after loading
Hi there,
Thanks a lot for this plugin, love how convenient it is. I was working over my dotfiles config and wondering if anyone had some 'fix' for this little annoyance:
I often use Vimwiki with multiple split buffers, calendar on the side. When selecting previous or next buffers, it often end up with the calendar. Not sure how NERDTree manages to do this.
I know it's probably a 0.5/10 in the priority list and this is 100% nitpicking. I just thought it was the best place to ask.
Thanks!
In the calendar, when I press <left>, the months are shift down and the cursor is move to the "<Prev" in the nav bar. What I want is the position of cursor doesn't change. It is not the option of "calendar_focus_today". With this option set to 1, the cursor still change because it keep tracing today until the date is out of window.
Take an example. Now the cursor is in the date 2.1. then I press <left>, then the cursor stays still and it points to 1.1 .(maybe it does moves a little because the difference of months).
Looking through the help I was wondering if we might add a normal mode command (from the Calendar entry file, not the Calendar) to jump
to the next and previous day's entry, so one might scan through days as they do through open buffers or through the jump list.
(I'm putting this here in case you think it's worth an enhancement rather than a PR from me, which will probably not happen for some time. If that's inappropriate, please let me know. Thanks!!)
Hi,
First of all, thanks a lot for calendar-vim! I use it together with the vimwiki diary and it is very useful.
calendar-vim marks days with an associated diary note with a plus sign +
; it marks weekends in bold font; and it marks the current day with an asterisk *
.
Is it possible to change this format? The +
and *
signs clutter my calendar window, making it hard to distinguish which days have notes and which don't at a first glance. I would prefer to mark days with a diary note in bold, and to not mark weekends as special days.
Thanks a lot in advance.
Great plugin!
I had to put calander.vim
into ~/.vim/autoload
to get it working. I don't think this is mentioned in your README.
All the best,
Tom
Hi sir, my when i do :Calendar
and pick a date, the file name is written as directory like this: /diary/2022/03/17.md
here is my configuration:
vim.g.calendar_diary = "~/.config/dev/personal/diary"
Expected result: /diary/2022-03-17.md
I created a patch for calendar-vim.
It add this plugin a new feature: a calendar of large size (new command CalendarT).
The patch is here: https://gist.github.com/itchyny/5822640
This patch is written in an hour so it may still have some bugs.
What do you think?
I have managed to open the calendar with Calendar [[Year] Month] syntax but it is still better to push "t" to display today date. Is there i way to open the caledar so i dont have to push 't' each time?
From 6de5eaa415f5fd01ac3c77de2fbf07c798cb3317 Mon Sep 17 00:00:00 2001
From: Gaute Hope <[email protected]>
Date: Mon, 20 Aug 2018 15:42:31 +0200
Subject: [PATCH] diary: use g:diary_extension in default calendar sign hook
---
autoload/calendar.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoload/calendar.vim b/autoload/calendar.vim
index 824f877..f369b82 100644
--- a/autoload/calendar.vim
+++ b/autoload/calendar.vim
@@ -1073,7 +1073,7 @@ endfunc
"* year : year of sign
"*****************************************************************
function! calendar#sign(day, month, year)
- let sfile = g:calendar_diary."/".printf("%04d", a:year)."/".printf("%02d", a:month)."/".printf("%02d", a:day).".md"
+ let sfile = g:calendar_diary."/".printf("%04d", a:year)."/".printf("%02d", a:month)."/".printf("%02d", a:day).g:calendar_diary_extension
return filereadable(expand(sfile))
endfunction
--
2.18.0
calendar.vim is available on GitHub:
http://github.com/mattn/calendar.vim
==>
calendar.vim is available on GitHub:
http://github.com/mattn/calendar-vim
You need to upload a ZIP or VimBall archive of the complete plugin to http://www.vim.org/scripts/script.php?script_id=52 that includes the separate documentation and autoload script!
Dear mattn,
Would you be fine if I packaged your repo for ArchLinux (AUR)? It seems to be working better than the script on http://www.vim.org/scripts/script.php?script_id=52.
Thanks. Cheers,
Fabio
Great package! I happily use it to help me navigate my vimwiki diary entries.
Just a suggested feature, inspired by the itchyny/calendar.vim
plugin -- quickly navigating between dates using the h
and l
keys. I implemented this in my own .vimrc
somewhat clumsily as follows:
au FileType calendar nmap <buffer> l /\( \\|\d\)\d\(+\\|*\\| \)<CR>:noh<CR>
au FileType calendar nmap <buffer> h lNN:noh<CR>
Maybe you (or somebody) can build this in as an option into your package, with a cleaner implementation?
Hi Mat, your lastest release is over one year ago, can you create a new one?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.