Releases: alphapapa/org-rifle
Releases · alphapapa/org-rifle
1.6.0
Additions
- Add clock-in action. Thanks to Michael Salihi.
- Add refile action. Thanks to @Atreus-Tantalus.
Changes
- Define actions in customizable variable
helm-org-rifle-actions
, which makes it easier for users to add custom actions. Thanks to Akira Komamura.
Fixes
- Use static autoload definitions for macro-defined commands, and delete autoloads for the macro definitions. This prevents
helm-org-rifle
from causingorg
to load unnecessarily. Fixes #13. Thanks to Anders Johansson (@andersjohansson) and Chris Ruegge (@cruegge). - When opening an item in an indirect buffer, respect the setting of
org-indirect-buffer-display
, and preserve position of point in the source buffer. Thanks to Akira Komamura. - Remove call to
org-re
, a macro obsolete in Org 9.0.
1.5.2
Fixes
- Use
derived-mode-p
to check buffers' major mode. This allows working with modes derived from Org, likeorg-journal-mode
. Thanks to Akira Komamura.
1.5.1
1.5.0
Additions
- Match to-do keywords specifically.
- Previously, to-do keywords were matched as normal words, so searching for
WAITING something
would find any entry with the wordswaiting
orsomething
in it. Now, to-do keywords are recognized as such and are compared to the actual to-do keyword of each entry, using the list of to-do keywords specific to each buffer. So, searching forWAITING something
will find entries containing the wordsomething
with the to-do statusWAITING
; searching forwaiting something
will search forwaiting
as a normal word, finding entries containingwaiting
orsomething
without regard for their to-do status. - Multiple to-do keywords are matched with a boolean OR. Since each entry can only have one to-do status, searching for multiple to-do keywords would logically exclude all entries and therefore match nothing. To make it more useful (and less error-prone), multiple to-do keywords are matched with OR. For example, searching for
TODO DONE something
will find entries containing the wordsomething
that are marked eitherTODO
orDONE
.
- Previously, to-do keywords were matched as normal words, so searching for
- In
occur
results:- Show a header for each source buffer.
- Show separators between each result.
- Fold search results individually, instead of folding the "fake" subtrees which are effectively created by inserting Org entries into the results buffer.
- Fold every entry in a source when the
org-cycle
key is pressed with point on a source header.
Fixes
- Use
(org-agenda-files)
function instead of theorg-agenda-files
variable inhelm-org-rifle-agenda-files
andhelm-org-rifle-occur-agenda-files
. This way, directory entries are expanded, and other Org customizations are respected. Thanks to Joonatan O'Rourke. - Fix tag negation. Negated tags were not actually being negated, and the test was wrong. Oops.
- When
helm-org-rifle-show-path
is on, match against path elements. This only happens when that option is enabled, so WYSIWYG: if you can't see the paths, they aren't matched against. Note, however, that they are always checked for excluded patterns, even if the option is off. Thanks to George Singer.
Internal
- Rewrote input parsing.
- Factored out entry-matching.
1.4.2
1.4.1
1.4.0
Additions
- New commands
helm-org-rifle-occur
,helm-org-rifle-occur-current-buffer
,helm-org-rifle-occur-files
,helm-org-rifle-occur-agenda-files
,helm-org-rifle-occur-org-directories
, andhelm-org-rifle-occur-org-directory
, which display results in anoccur
-like, persistent buffer. These are handy when you aren't as certain of what you're looking for and you want to keep the results visible while looking at each result's source buffer. When you click on or pressRET
on a result, the source buffer will be popped to alongside the results buffer, and the node will be revealed, cycled to, and the point moved to the same place. These commands do not actually use Helm at all, so maybe they should be renamed to simplyorg-rifle
…? - Results can now be sorted by either the order that nodes appear in their buffers (the default) or the latest timestamp in each node. To change the sort order, run a command with a universal prefix (
C-u
). Ifhelm-org-rifle-sort-order-persist
is set, the sort order remains after setting it, and the default sort order may also be customized. - The Helm commands now support multiple selection. If multiple entries are selected, they will be displayed in-full in a read-only,
occur
-style buffer, like thehelm-org-rifle-occur
commands do. - All of the results in a Helm buffer can be saved to a
helm-org-rifle-occur
buffer by pressingC-s
in the Helm buffer. - New option
helm-org-rifle-always-show-entry-contents-chars
to show some entry contents when the query only matches the heading or metadata, defaults to50
characters. - New option
helm-org-rifle-show-full-contents
which displays each result's entire contents rather than just the context around each matching word. This is off by default, but thehelm-org-rifle-occur
commands activate it for their results, and you might use it selectively by calling one of therifle
commands inside alet
that sets this variable. - New options
helm-org-rifle-heading-contents-separator
andhelm-org-rifle-multiline
. These may be useful to compact the results display when defining custom commands. - The functions
helm-org-rifle-files
andhelm-org-rifle-directories
(and their new-occur
counterparts) now accept either a string or a list of strings. - Tests have been added to prevent future breakage. Whew.
Fixes
- Tag order is now irrelevant. Previously, searching for
:tag1:tag2:
would not show a heading tagged:tag2:tag1:
. It could be worked around by searching for:tag1: :tag2:
, but that was non-obvious and counter-intuitive. This could be considered a bug-fix, but the change is significant enough that it belongs in a feature update to get more testing. - Negations are now matched against each node’s entire outline path and against buffer names. Previously they were only matched against the node’s own heading, not any of its parents’ headings.
- Org links are "unlinkified" when showing match context, preventing Org syntax characters from cluttering the results.
- The display of full outline paths in Helm buffers is tidier.
- Fixed bug that may have prevented the first or last heading in a file from being matched.
- Fixed bug that prevented negated tags (e.g.
!:tag1:
) from being negated properly. - Fixed very minor bug in customization settings that caused the setting for
helm-org-rifle-show-entry-function
to display the wrong function name, even though it worked correctly.
1.3.0
1.2.0
- New commands helm-org-rifle-files and helm-org-rifle-directories to search through files that may or may not already be open.
- New option helm-org-rifle-directories-filename-regexp to control what files are searched with helm-org-rifle-directories (e.g. including .org_archive files).
- New option helm-org-rifle-close-unopened-file-buffers to control whether new buffers opened for searching remain open. Leaving them open will make subsequent searches faster, but most users will probably prefer to not have their buffer list cluttered, so this is enabled by default.
- New option helm-org-rifle-directories-recursive to control whether helm-org-rifle-directories recursively scans subdirectories, enabled by default. When helm-org-rifle-directories is called with a prefix, this option is inverted.
- Add dependency on f.el.
- When helm-org-rifle-show-path is enabled, replace Org links in headings with their descriptions. This prevents org-format-outline-path from truncating the links, making them useless for reading.
- Show results in the order they appear in the Org file (they were shown in reverse order).