[[https://melpa.org/#/org-sidebar][file:https://melpa.org/packages/org-sidebar-badge.svg]]
This package presents helpful sidebars for Org buffers. Sidebars are customizable using [[https://github.com/alphapapa/org-ql][org-ql]] queries and [[https://github.com/alphapapa/org-super-agenda][org-super-agenda]] grouping.
The default sidebar includes a chronological list of scheduled and deadlined items in the current buffer (similar to the Org agenda, but without all its features) at the top, and a list of all other non-done to-do items below. If the buffer is narrowed, the sidebar only shows items in the narrowed portion; this allows seeing an overview of tasks in a subtree.
[[images/screenshot.png]]
The tree-view sidebar aids navigating an outline and editing entries individually:
[[images/tree2.gif]]
Contents :PROPERTIES: :TOC: this :END:
Installation :PROPERTIES: :TOC: 0 :END:
** MELPA
If you installed from MELPA, you're done!
** Quelpa
Installing with [[https://framagit.org/steckerhalter/quelpa][Quelpa]] is easy:
(use-package org-sidebar :quelpa (org-sidebar :fetcher github :repo "alphapapa/org-sidebar"))
You may find [[https://github.com/alphapapa/unpackaged.el#upgrade-a-quelpa-use-package-forms-package][this function]] helpful for updating packages with Quelpa.
Call these commands to display sidebars:
** Customization
Customization options are in the =org-sidebar= group. For example, you can add the tree view to the default sidebar:
[[images/sidebar-with-tree.png]]
/Showing theme doom-one-light./
Or you can display the tree sidebar on one side, and the item sidebars on the other:
[[images/tree-and-item-sidebars.png]]
/Showing theme doom-opera-light./
** Advanced
To display custom-defined sidebars, call the function =org-sidebar= with the arguments described in its docstring. See examples in [[examples.org]], as well as the definitions of functions =org-sidebar--todo-items= and =org-sidebar--upcoming-items=.
** Commands
*** =org-sidebar-tree=
[[images/tree.gif]]
/Demo recorded using packages =org-sticky-header=, =org-bullets=, and theme =doom-city-lights=./
In the tree buffer, the keymap =org-sidebar-tree-map= is used, which is based on =org-mode-map= (so you can use Org keybindings to manipulate nodes), and has these additional bindings by default:
Dragging-and-releasing with mouse buttons (as opposed to clicking and releasing at a single position) shows additional subtree and entry content:
If you prefer, you may customize =org-sidebar-tree-jump-fn= to jump to entries in their source buffer rather than indirect buffers.
*** =org-sidebar-tree-toggle=
Toggle the tree sidebar.
*** Item sidebars
These commands display item sidebars, which display Org entries gathered with =org-ql=.
Key bindings: In an item sidebar buffer, these keys are bound:
**** org-sidebar ~(fns)~
Interactively, display the sidebars configured in ~org-sidebar-default-fns~.
**** org-sidebar-toggle
Toggle the default item sidebars.
**** org-sidebar-ql ~(&key query buffers-files narrow group-property sort)~
Display a sidebar for ~org-ql~ ~QUERY~. Interactively, with prefix, prompt for these variables:
**** org-sidebar-backlinks
Show sidebar with entries that link to the current entry. The entry must have an =ID= or =CUSTOM_ID= property; links to the heading text are not found. Note that searching for links to entries that have both =ID= and =CUSTOM_ID= properties set is much slower than searching for links to entries with just one of those properties.
** 0.5-pre
Org v9.6 or later is now required.
** 0.4
Additions
Changes
Fixes
Thanks
** 0.3.2
Fixed
** 0.3.1
Fixed
** 0.3
Added
** 0.2
Extensive refactoring and improvements.
Added
** 0.1
First tagged version.
This was inspired by [[https://www.reddit.com/r/emacs/comments/88mtrh/emacs_org_mode_with_atom_org_mode_design/][this /r/Emacs post]], which was inspired by [[https://github.com/MattFlower/organized/][Organized for Atom]].
GPLv3.