Skip to content

DamienCassou/cc-isearch-menu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://melpa.org/packages/cc-isearch-menu-badge.svg

cc-isearch-menu - A Transient menu for isearch

This package contains a Transient menu for isearch. When in basic isearch mode, this menu can be raised by pressing the <f2> key. A menu of different isearch commands will be offered as shown below:

docs/images/cc-isearch-menu.png

Install

Use the following lines to install cc-isearch-menu.

(require 'cc-isearch-menu)
(define-key isearch-mode-map (kbd "<f2>") #'cc-isearch-menu-transient)

The keybinding to cc-isearch-menu-transient can be changed to user preference.

Menu Commands

The following isearch commands are grouped as follows in the Transient menu cc-isearch-menu-transient. Keys associated with each command are shown enclosed in parentheses.

Edit Search String

  • isearch-edit-string (e)
  • isearch-yank-word-or-char (w)
  • isearch-yank-symbol-or-char (s)
  • isearch-yank-line (l)
  • isearch-yank-kill (y)
  • isearch-forward-thing-at-point (t)

Replace

  • isearch-query-replace (r)
  • isearch-query-replace-regexp (x)

Toggle

  • isearch-toggle-regexp (X)
  • isearch-toggle-symbol (S)
  • isearch-toggle-word (W)
  • isearch-toggle-case-fold (F)
  • isearch-toggle-lax-whitespace (L)

Misc

  • isearch-occur (o)
  • isearch-highlight-regexp (h)
  • isearch-highlight-lines-matching-regexp (H)

Navigation

  • isearch-repeat-forward (n)
  • isearch-repeat-backward (p)

Dismiss

The Transient key C-q will dismiss the menu.

Usage

When in search mode (typically via the keybinding C-s or C-r), pressing the keybinding <f2> (or binding of your preference) will raise the Transient menu cc-isearch-menu-transient. Once raised, only the isearch commands in the Replace and Misc sections will automatically dismiss the menu when selected. All other isearch commands will not dismiss the menu.

Note that editing the search text via isearch-edit-string will enter a recursive editing mode that is normally exited when pressing the return key.

As built-in behavior to Transient menus, C-q will dismiss all nested menus. Alternately one can use C-g to dismiss the present menu as this package only has one menu.

See Also

If you like cc-isearch-menu, these other projects might interest you:

  • Casual - a Transient porcelain for Emacs Calc.
  • Casual Dired - a Transient porcelain for the Emacs file manager Dired.
  • Casual Avy - a Transient porcelain for Avy.
  • Casual Info - a Transient porcelain for Info.

Sponsorship

If you enjoy using cc-isearch-menu, consider making a modest financial contribution to help support its development and maintenance.

docs/images/default-yellow.png

About

Emacs Transient menu for isearch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Emacs Lisp 59.9%
  • Makefile 38.6%
  • Shell 1.5%