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

Add ways to add notes and todo items to the org-brain entry in visualize mode #281

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on May 28, 2021

  1. Create capture templates for org-brain

    I plan to use these templates to implement functionality
    `org-brain-add-todo` in a future commit. The summary of changes in
    this commit are as follows:
    
    1. Set up capture templates for brain.
    
    I'm using "b" as a template prefix key for capture templates related
    to org-brain. Since people may already be using this key in their own
    capture templates, this functionality is turned off by default (via
    `org-brain-visualize-use-capture-templates` var) and the user can
    select a different prefix key (via
    `org-brain-visualize-capture-prefix-key` var)
    
    Since I was setting up capture templates, I also moved the capture
    template described in the README to this code.
    
    Finally, these templates only work in the context of
    org-brain-visualize, to avoid clutter in other modes.
    
    2. `org-brain-visualize--register-capture-templates`
    
    This is a helper function to ensure that we set up the capture
    templates only once. It's internal and invisible to the user.
    vedang committed May 28, 2021
    Configuration menu
    Copy the full SHA
    229590b View commit details
    Browse the repository at this point in the history
  2. Add tasks to the org-brain entry in visualize mode

    Add a key-binding (`C-c t`) to directly add a TODO entry to the
    current entry in org-brain. This makes it possible to capture action
    items about the current entry without leaving the
    org-brain-visualization window.
    
    This change depends on the capture templates introduced in the commit
    before it and adds `org-brain-visualize-add-todo` and
    `org-brain-add-todo` functions to enable adding tasks under a brain
    entry.
    vedang committed May 28, 2021
    Configuration menu
    Copy the full SHA
    86c2e19 View commit details
    Browse the repository at this point in the history
  3. Add a note to an org-brain entry

    Add a key-binding (`C-c z`) to directly trigger adding notes to the
    current entry in org-brain. This makes it possible to capture thoughts
    about the current entry without leaving the org-brain-visualization
    window.
    
    The commit provides two functions:
    
    - `org-brain-visualize-add-note` : This function is bound to `C-c z`
    in `org-brain-visualize-mode-map` and is the expected way to use this
    functionality. Adds a note to the current entry.
    
    - `org-brain-add-note`: This is a generic function that can be called
      from within org-mode.
    vedang committed May 28, 2021
    Configuration menu
    Copy the full SHA
    c8d5a71 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. Fix: Remove unnecessary * in plain capture template

    The * causes a new heading to be created, under the heading that we
    are already creating / accessing. The intention of the capture
    template is to add content to an existing entry, or create a new entry
    and add content to it. Both of these are done by the fixed template
    now.
    vedang committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    2e63e42 View commit details
    Browse the repository at this point in the history
  2. Enable the capture templates added as part of org-brain everywhere

    Earlier, these were only enabled in the `org-brain-visualize-mode`,
    but it makes sense to add these everywhere, since we mostly work
    ourside the *org-brain* view.
    
    Add capture template related information to the README file as well.
    vedang committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    2bc3d64 View commit details
    Browse the repository at this point in the history