-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to optionally use an external script for
titlecase-command
To be more friendly with prior art in this space (see melpa/melpa#7852), I've refactored this titlecase package to enable the user to specify a `titlecase-command`, which can be a function, string, or list of strings. It defaults to this package's internal implementation of title-casing, but can be set to an external script or even another function. I've also adapted the `titlecase-region` function to use a temporary buffer, like Jason Blevin's implementation, and attempted to make undoes easier to deal with by moving to the end of the sentence or line titlecased (addressing issue
- Loading branch information
Case Duckworth
committed
Jan 9, 2022
1 parent
bfd4fbd
commit cc3b6b2
Showing
1 changed file
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters