Counsel (Ivy) interface for org-clock
Counsel Org Clock provides commands for displaying org clock entries via Counsel (Ivy) interface.
This package contains the following two commands:
counsel-org-clock-context
displays the task, its ancestors, and its descendants via Ivy. When not clocking in, this function behaves the same as counsel-org-clock-history
. counsel-org-clock-history
displays entries in org-clock-history
variable via Ivy.counsel-org-clock-history
rebuilds the history from clock entries in org-agenda-files
before displaying it.counsel-org-clock-goto
command is a replacement for org-clock-goto
which lets you navigate to the active clock and through the clock history.counsel-org-clock-context
:
counsel-org-clock-history
:
Actions for the selected headline (M-o
):
This package is available on MELPA as counsel-org-clock
.
Run counsel-org-clock-context
or counsel-org-clock-history
. By default, these functions jump to a selected headline. You can change the default action by setting counsel-org-clock-default-action
variable.
You can also access a bunch of alternative actions from M-o
, including:
If you run counsel-org-clock-history
with a prefix argument, it reads clock entries in org-agenda-files
and rebuilds org-clock-history
variable before displaying the history contents.
There is also counsel-org-clock-goto
command. It behaves as follows:
C-u
), it calls counsel-org-clock-context
.C-u C-u
), it runs counsel-org-clock-history
, which lets you browse your clock history. C-u C-u C-u
), it runs counsel-org-clock-history
with an argument. That is, it lets you browse the clock history after rebuilding it from org-agenda-files
.You can also customize what this command does when there is no active clock.
If you set counsel-org-clock-goto-fallback-function
to a function, the command calls the function when there is no active clock.
I bind M-g M-j
to this command:
(global-set-key (kbd "M-g M-j") #'counsel-org-clock-goto)
counsel-org-clock-history
/counsel-org-clock-context
with a prefix argument!GPL v3