[core] document new narrow to indirect buffer keybindings

This commit is contained in:
Keith Pinson 2020-10-26 08:57:25 -04:00 committed by duianto
parent 5b4b6af8d3
commit 155490afaf
2 changed files with 14 additions and 7 deletions

View File

@ -521,7 +521,8 @@ Other:
terminal mode, but no longer in GUI mode. (emacs18)
*** Core changes
- Improvements:
- Provide keybindings for using narrow with an indirect buffer, for when you
- Provide keybindings for using narrow with an indirect buffer (to function
definition, ~SPC n F~; to page, ~SPC n P~; to region, ~SPC n R~) for when you
want narrowing multiple times in the same base buffer (thanks to Keith
Pinson and duianto)
- Make =describe-text-properties= available in the help -> describe menu via

View File

@ -3142,12 +3142,18 @@ With [[https://github.com/TheBB/evil-indent-plus][evil-indent-plus]] the followi
The displayed text of a buffer can be narrowed with the commands (start with
~n~):
| Key binding | Description |
|-------------+-------------------------------------------|
| ~SPC n f~ | narrow the buffer to the current function |
| ~SPC n p~ | narrow the buffer to the visible page |
| ~SPC n r~ | narrow the buffer to the selected text |
| ~SPC n w~ | widen, i.e. show the whole buffer again |
| Key binding | Description |
|-------------+------------------------------------------------------|
| ~SPC n f~ | narrow the buffer to the current function |
| ~SPC n p~ | narrow the buffer to the visible page |
| ~SPC n r~ | narrow the buffer to the selected text |
| ~SPC n w~ | widen, i.e. show the whole buffer again |
| ~SPC n F~ | narrow to the current function in an indirect buffer |
| ~SPC n P~ | narrow to the visible page in an indirect buffer |
| ~SPC n R~ | narrow to the selected text in an indirect buffer |
Narrowing in an indirect buffer overcomes the problem that a buffer can only be
narrowed in one place at a given time.
*** Replacing text with iedit
Spacemacs uses the powerful [[https://github.com/tsdh/iedit][iedit]] mode through [[https://github.com/syl20bnr/evil-iedit-state][evil-iedit-state]] to quickly