On 2026-02-17, Michael DeBusk via Remind-fans wrote:
> I was thinking of ways to make vim more useful with remind files and
> wondered if I could come up with a date picker. I put this in my
> vimrc:
> 
> cnoremap dtp execute '-r !zenity --calendar --date-format=\%F'

Great idea!

> I used a cnoremap to make it fit with a couple of abbreviations I
> already use. The date format "%F" returns ISO date.

I took your idea and modified it a bit to fit with some
abbreviations I already use, changed the date format to the American
style I use for my reminders, and put this in my
~/.vim/after/ftplugin/remind.vim:

    iabbrev <silent> <buffer> remz REM <C-R>=system('zenity --calendar 
--date-format="%B %e %Y"
        \ \| awk "{printf \"%-9s%3s %s\", \$1, \$2, \$3}"')<CR>

Regards,
Gary


_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to