colonelpanic8 / org-project-capture

Manage org-mode TODOs for your projectile projects
332 stars 33 forks source link

Agenda view for current project #51

Open evandavis opened 3 years ago

evandavis commented 3 years ago

I'm using org-projectile in single-file mode (projects todos go under project-name headlines in ~/Org/projects.org.)

Is there an easy way to view my todos filtered to the current project?

I'm happy to add this in userland, but is this something that could be added to the package?

colonelpanic8 commented 3 years ago

@evandavis use org categories? I believe that categories should be added to project headings automatically, but its been a while since I actually checked.

evandavis commented 3 years ago

The category is added automatically, but I'm stuck trying to get the name of the current project into the category filter from the agenda dispatcher. Writing it out, I think this might be a better question for StackExchange...

colonelpanic8 commented 3 years ago

The category is added automatically, but I'm stuck trying to get the name of the current project into the category filter from the agenda dispatcher. Writing it out, I think this might be a better question for StackExchange...

Wdym by the current project. In the agenda dispatcher it may be hard to get some notion of the current project.

evandavis commented 3 years ago

What I mean is this:

  1. I'm editing a file in a known project, my-project.
  2. From that buffer, I do C-c a to bring up the agenda dispatcher.
  3. I press p to bring up my-project todos.

I think what I actually want is for org-projectile to export an agenda view that I can bind to my projectile-map, like

:bind ("s-p A" . org-projectile-project-agenda) // agenda view for this project's todos

(fwiw, I've only been using emacs full time for about a year, so thank you for the replies even if what I'm asking for is trivial or dumb!)

colonelpanic8 commented 3 years ago

Right, the problem is that you want an agenda command that is contextual i.e. it does something different depending on your current editing state. That's just not really possible as far as I remember with org-agenda.

That said, it's very easy to filter by category. It should also be possible to write a small custom bit of elisp to do what you want.

colonelpanic8 commented 1 year ago

@evandavis did you ever get what you wanted here?