Skip to content

juergenhoetzel/consult-gnome-search

Repository files navigation

Gnome Search Provider Emacs Integration

Search is a central element of the Gnome desktop environment. Many applications implement the Search Provider dbus interface to provide suitable results.

The aim of this package is to make these search results also available within the Emacs editor.

img/gnome-search-minibuffer.png

Configuration

The dbus-method ActivateResult is used to open the selected result in the application implementing the Search Provider. Nautilus for example leverages xdg-mime to delelegate the activation to the configured application.

You most likely want to set:

xdg-mime default emacsclient.desktop text/plain
xdg-mime default emacsclient.desktop text/x-csrc

to edit edit the selected files within Emacs.

Activation can also take place completely in elisp without having to go via the search provider; for this, a corresponding function must be defined in consult-gnome-search-activate-functions.

Installation

Available via package-vc-install (Emacs 29):

(package-vc-install "https://github.com/juergenhoetzel/consult-gnome-search")

I plan to publish the package later on MELPA.

About

Gnome Search Provider: Emacs Integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published