nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
2.97k stars 130 forks source link

Global mapping for week agenda #103

Open petRUShka opened 2 years ago

petRUShka commented 2 years ago

Does this feature exist in Emacs orgmode core?

No

Orgmode link

Keymap isn't activated by default.

Feature value

In vim-orgmode there are several global mappings which are agenda-related:

  Agenda:~
    <localleader>caa    - agenda for the week
    <localleader>cat    - agenda of all TODOs
    <localleader>caA    - agenda for the week for current buffer
    <localleader>caT    - agenda of all TODOs for current buffer

Some of them for example caA is very useful for me to check what is scheduled for next 7 days (independently on current day of week). I believe it would be useful for backward compatibility with vim-orgmode for migrating users.

Additional context

No response

kristijanhusak commented 2 years ago

My goal is not to migrate people from vim-orgmode but from emacs orgmode, that's why I try to clone emacs orgmode as much as possible. AFAIK there is no for current buffer agenda views in orgmode, at least not by default. First two exists, but its oaa and oat instead of caa and cat. I plan to add filtering to agenda, so you will be able to filter todos by category/tag/search term. This would somewhat provide the "buffer" ones.

kristijanhusak commented 2 years ago

I added support for filtering agenda view. See https://github.com/kristijanhusak/orgmode.nvim/blob/tree-sitter/DOCS.md#org_agenda_filter. There's no easy way at this moment to have a keybinding that pre-filters data for view, but it should do the trick for now.