Skip to content

emacsattic/eshell-outline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Eshell-outline.el – Enhanced outline-mode for Eshell

This library provides a few enhancements for using outline-minor-mode within eshell.

Installation

package.el

Eshell-outline is in MELPA, so it’s just a package-install away.

straight.el

Use the following recipe:

(eshell-outline :type git
		  :flavor melpa
		  :repo "https://git.jamzattack.xyz/eshell-outline")

Manual installation

  1. Download eshell-outline.el
  2. Stick it in load-path
  3. Update autoloads
  4. (optionally) byte-compile it

Commentary

Eshell-Outline mode defines a few commands to integrate Outline minor mode into Eshell. Some eshell-specific keys have been rebound so that they have multiple uses.

Namely, C-c C-c and C-c C-k will either kill/interrupt the running process, or show/hide the prompt+output at point.

C-c M-o (eshell-mark-output/eshell-outline-narrow) now uses narrowing to clear the buffer as an analogue to comint-clear-buffer and replacement for eshell/clear. It is also able to narrow to a previous prompt+output.

C-c M-m (undefined/eshell-outline-mark) marks the prompt+output at point, replacing C-c M-o which has been rebound. If point is at an empty prompt at the end of the buffer, this will mark the previous prompt+output instead.

Because this mode doesn’t actually enable outline-minor-mode, I also bind C-c @ to outline-mode-prefix-map.

See Table of keybindings for a full list of keybindings.

Table of keybindings

KeyDescription (C-c C-o in org-mode to show documentation)
C-c C-kshow/hide prompt+output or kill process
C-c C-cshow/hide prompt+output or interrupt process
C-c C-thide all
C-c C-ashow all
C-c M-onarrow to prompt+output
C-c M-mmark prompt+output
C-c @prefix for outline-mode-prefix-map

License

GPL3+

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published