orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Orge Agenda questions: Is it possible to remove the file names on the org agenda view?

Open Qkessler opened this issue 9 months ago • 8 comments

Hi there!

Thanks so much for the plugin, loving it so far. I have been configuring my org agenda to look as much as possible to my Emacs one. Couple of questions:

  • Is it possible to remove the file names from the org agenda view? I usually have very long file names (including tags and so on), making the org agenda harder to use.
  • How can I create an agenda view that has WAITING and SOMEDAY headings using tags_todo? I haven't been able to find a match query that works for me, even checking the org mode documentation.

Thanks again! Best, Quique.

Qkessler avatar Feb 27 '25 10:02 Qkessler

Hi,

For the first point, can you provide how you do that in emacs? I'm not sure what you mean by file name. I assume category, but let me know how you do that in Emacs.

For point two, this should do the trick:

  1. WAITING or SOMEDAY: match = 'WAITING|SOMEDAY'
  2. WAITING and SOMEDAY: match = 'WAITING&SOMEDAY'

kristijanhusak avatar Feb 27 '25 13:02 kristijanhusak

For 1, here's the docs from org mode: https://doc.endlessparentheses.com/Var/org-agenda-prefix-format.html

Thanks for point 2, will try!

Edit: Here's my config, pointing at org-agenda-prefix-format: https://github.com/Qkessler/qk-emacs/blob/main/modules/qk-org-agenda.el#L6

Qkessler avatar Feb 27 '25 13:02 Qkessler

No luck! This won't work:

            {
              type = 'tags_todo',
              match = 'WAITING&SOMEDAY',
              org_agenda_overriding_header = 'Waiting/Someday Tasks:',
            },

Qkessler avatar Feb 27 '25 13:02 Qkessler

org-agenda-prefix-format

Ah, right, that is not supported yet. You can open up a separate issue for that.

Regarding the match, just to confirm, WAITING & SOMEDAY are tags?

kristijanhusak avatar Feb 27 '25 13:02 kristijanhusak

Since WAITING somewhat implies it's a todo keyword, you can do this to match only todo keywords:

            {
              type = 'tags_todo',
              match = '/WAITING|SOMEDAY',
              org_agenda_overriding_header = 'Waiting/Someday Tasks:',
            },

kristijanhusak avatar Feb 27 '25 16:02 kristijanhusak

Hi there! Another org-agenda question. Is it possible today to change what an action defined on the default mappings file does? Say, can I assign a function to mappings.agenda.org_agenda_refile?

I'm interested in changing the action for refiling when in the org agenda buffer. Even though I can play with ftpplugin and the FileType autocommand, wanted to see if there was something easier!

Thanks!

Qkessler avatar Mar 07 '25 10:03 Qkessler

Just to avoid the XY problem. I'm trying to refile with telescope directly on the orgagenda buffer.

Qkessler avatar Mar 07 '25 10:03 Qkessler

Support for Telescope is currently limited. There's an open issue for this https://github.com/nvim-orgmode/telescope-orgmode.nvim/issues/25.

kristijanhusak avatar Mar 07 '25 10:03 kristijanhusak