I'm creating a custom agenda command that searches for tags and displays results in column view:
(defun my/org-agenda-search-tags () (interactive) (let* ((tags-input (read-string "Enter tags to search (space-separated): ")) (tags-list (split-string tags-input " " t)) (tags-query (mapconcat (lambda (tag) tag) tags-list "&")) (org-agenda-prefix-format " ") (org-overriding-columns-format "%25ITEM %TODO %PRIORITY %TAGS %CREATED %SWAY") (org-agenda-view-columns-initially t)) (org-tags-view nil tags-query) (org-agenda-columns))) The problem I'm encountering is with the PRIORITY column. For TODO items that don't have an explicitly set priority (no [#A], [#B], or [#C] in the headline), Org still displays the default priority (B) in the column view.
Here's an example TODO without explicit priority:
* TODO Sample task :PROPERTIES: :CREATED: [2025-05-11 sø.] :SWAY: 3 :ID: 0648cfbe-05d1-4477-bf8c-b7b3edbd0fb6 :END: In the agenda column view, this displays with a "B" in the PRIORITY column, even though there's no [#B] in the headline.
My question: Is there a way to configure the column view to only display priorities that are explicitly set in the headline, and leave the column blank for items with default priority?
I've tried various approaches including:
- Different formats for the PRIORITY column
- Setting
org-priority-show-all-prioritiesto nil - Post-processing the agenda buffer
But I haven't found a clean solution that works reliably.
Any suggestions would be appreciated!
org-priority-show-all-prioritiesis not used at all so setting it to anything is bound to be ineffective. Where did you see that a variable of that name exists?