Releases: oantolin/embark
1.1
The embark-consult package contains a new exporter for consult-location targets (produced by several consult commands such as consult-line), which exports to a grep mode buffer. Users wishing to use the new grep mode exporter can use the following configuration:
(setf (alist-get 'consult-location embark-exporters-alist)
#'embark-consult-export-location-grep)
The main reason for adding the new exporter is that users of the wgrep package will be able to make use of a feature that wgrep has and the built-in occur-edit-mode lacks: when editing search results you can add new lines to a result location. There are also some disadvantages of grep mode compared to occur mode (which is why the previously existing occur mode exporter continues to be the default): (1) wgrep is a third party package while occur-edit-mode is built-in; (2) occur mode buffers can list lines in any kind of buffer, but grep mode and wgrep are meant for lines of files exclusively.
1.0
Finally a 1.0! 🎉
Main changes since 0.23:
- You can now use around action hooks with multitarget actions (that
you couldn't previously was an oversight). - Users of the
embark-consultpackage can now use consult async search
commands such asconsult-grepas multitarget actions (through
embark-act-all) to search a list of files. For example, you can use
consult-findto search among file /names/ and once you have the
relevant files in the minibuffer, you can useembark-act-allto
search for some text in those files. When acting on buffers consult
async search commands will search the associated file if there is
one, or else thedefault-directoryof the buffer. embark-bindingsand similar commands now show definition of keyboard
macros.embark-orgnow recognizes Org links in non-org buffers.- Now pressing RET in an
embark-collecton a selection made by
usingembark-selectin a normal buffer will take you to the location
each target was collected from. - Some functions renamed for greater consistency (these functions are
unlikely to be referred to in user's configuration):embark-target-completion-at-point→embark-target-completion-list-candidateembark-target-top-minibuffer-completion→embark-target-top-minibuffer-candidateembark-completions-buffer-candidates→embark-completion-list-candidates
0.23
embark-orgnow supports targets which are references to headings in other buffers, such as agenda items, or minibuffer completion candidates from commands such asconsult-org-headingfrom the consult package ororg-ql-findfrom the org-ql package.- If any item in an embark-collect buffer contains a new line, then the items will be separated by horizontal lines. This is great for browsing the kill-ring.
- There is a nice new indicator contributed by @minad showing how many items are in the embark selection. Also,
embark-selectcan now be used as a command outside ofembark-actand will select the first of the targets at point.
See CHANGELOG for a more detailed list of changes.
0.21
The macro embark-define-keymap is now obsolete. User have always been able to define keymaps using whatever mechanism they prefer, but the embark source code used embark-define-keymap. Now it uses defvar-keymap which will be added at some point to Emacs and is made available to previous versions through the Compat library.
0.19
0.17
There have been considerable improvements to the collect and export functionality:
- Renamed
embark-collect-completionsto justembark-collect, andembark-collect-livetoembark-live. Their implementations were also significantly simplified. Also,embark-collect-completions, which was hardly used, has been removed. - Collect and export buffer have descriptive names now.
- Collect buffers have a dired-like marking functionality now, making it easy to use
embark-act-allon arbitrary subsets of candidates. - Collect buffers support
group-functionwith a collapseable outline. - Added flexible "half-revert" functionality for collect and export buffers: pressing
gwill rerun the command the candidates were obtained from and re-enter the input you had, so you can tweak the input and re-collect or re-export if you like.
Besides changes to collect and export, there have been several other miscellaneous improvements, maybe chief among them making the insert and "save to kill-ring" actions support multiple targets.
0.16
0.15
0.12
0.10
Embark occur has been renamed Embark collect, and more precisely:
- the old
embark-occuris nowembark-collect-snapshotand no longer forces you to exit the minibuffer (it can be called as the action bound toSfromembark-actif you do wish to exit), - the old
embark-live-occuris nowembark-collect-completions, - there is a new type:
embark-collect-liveproduces a live updating embark collect buffer that is not killed upon minibuffer exit.