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

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

Open
Qkessler opened this issue Feb 27, 2025 · 8 comments

Comments

@Qkessler
Copy link

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.

@kristijanhusak
Copy link
Member

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'

@Qkessler
Copy link
Author

Qkessler commented Feb 27, 2025

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
Copy link
Author

No luck! This won't work:

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

@kristijanhusak
Copy link
Member

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
Copy link
Member

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:',
            },

@Qkessler
Copy link
Author

Qkessler commented Mar 7, 2025

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
Copy link
Author

Qkessler commented Mar 7, 2025

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

@kristijanhusak
Copy link
Member

Support for Telescope is currently limited. There's an open issue for this nvim-orgmode/telescope-orgmode.nvim#25.

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

2 participants