Previous: , Up: Selecting records   [Contents][Index]


5.2 Selection mode

In both navigation mode and the assorted edition modes, rec-cmd-goto-next-rec and rec-cmd-goto-prev-rec navigate to the next and previous record, respectively. On large files, finding a particular record using these commands only can be quite tedious. To this end, using selections, it is possible to jump to or restrict navigation to records matching selections.

Restricting the navigation commands, typically bound to n and C-c C-n (mutatis mutandis for backward movement), to records that match the current selection, can be done using what is called record selection mode.

Record selection mode is a buffer-local minor mode in which the commands for next and previous records as described above do not behave the usual way: they navigate records that only match the currently active selection.

When selection mode is entered, any associated summary buffer automatically updates its contents to match that of the current selection. Once selection mode is turned off, the summary buffer reverts back to the previous selection.

Record selection mode can be entered by the following commands:

/ s
M-x rec-cmd-navigate-current-type-by-sex

Prompts the user for a selection expression, runs a query on the current buffer and the current type, and then enters record selection mode.

/ q
M-x rec-cmd-navigate-current-type-by-fast-string

Same as above, but with a fast string search.

In record selection mode, besides the standard navigation bindings, the following additional bindings are defined:

/ /
M-x rec-cmd-exit-selection

Exits record selection mode and restores the normal navigation keybindings.


Previous: Buffer from selection, Up: Selecting records   [Contents][Index]