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

Agenda view for current project #51

Open
evandavis opened this issue Aug 30, 2021 · 6 comments
Open

Agenda view for current project #51

evandavis opened this issue Aug 30, 2021 · 6 comments

Comments

@evandavis
Copy link

evandavis commented Aug 30, 2021

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

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

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

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

evandavis commented Sep 1, 2021

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

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

@evandavis did you ever get what you wanted here?

@colonelpanic8 colonelpanic8 changed the title Agenda view? Agenda view for current project Aug 17, 2023
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