https://github.com/sandinmyjoints/kill-dollar-mode
Remove leading `$` from shell-script-like text in documentation.
https://github.com/sandinmyjoints/kill-dollar-mode
Last synced: 3 months ago
JSON representation
Remove leading `$` from shell-script-like text in documentation.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/kill-dollar-mode
- Owner: sandinmyjoints
- License: gpl-3.0
- Created: 2024-12-13T18:27:24.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-17T19:48:05.000Z (6 months ago)
- Last Synced: 2024-12-30T04:29:39.290Z (5 months ago)
- Language: Emacs Lisp
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kill-dollar-mode
Remove leading `$` from shell-script-like text in documentation.
## Motivation
It's common to see documentation that describes how to run commands in a shell
formatted with `$` at the beginining of the line to represent the prompt:``` shell
$ pwd
```This minor mode removes the leading `$` and surrounding whitespace from the
text in the kill ring, so when yanked into a shell, it can be executed.In the example above, if the line of code were killed and yanked, the yanked
text would be `pwd`.