https://github.com/comfortablesoftware/kennings
Atom editor snippets my way, atom package
https://github.com/comfortablesoftware/kennings
Last synced: 11 months ago
JSON representation
Atom editor snippets my way, atom package
- Host: GitHub
- URL: https://github.com/comfortablesoftware/kennings
- Owner: ComfortableSoftware
- License: mit
- Created: 2022-05-16T18:34:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T03:14:33.000Z (almost 4 years ago)
- Last Synced: 2025-06-03T18:43:10.791Z (about 1 year ago)
- Language: CoffeeScript
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kennings PACKAGE
- #### Wraps selected text in arbitrary preconfigured text.
- ##### Makes .md and .html links
- ###### LowerCaseFixedText when true lower cases the fixedText before replacing %FT% with it.
- ###### UpperCaseSelectedText when true upper cases selectedText before replacing %ST% with it.
- ###### LinkifyFixedText when true replaces spaces and tabs by dashes and removes all disallowed characters from fixedText before replacing %FT% with it.
- ###### newTextList:
1. "\[%ST%\]\(\#%FT%\)"
- Wrap a link in the current file.
2. "\[%ST%\]\(./fileOne.md\#%FT%\)",
- Wrap a link in fileOne.md in the local directory.
- "%ST%" will be replaced with the selected text from the editor unmodified.
- "%FT%" will be replaced by the text which has been processed through the regex in patternList and replacement in replaceList.
- Select text to wrap in a link in an editor buffer.
- Select "Hello there!" alt-ctrl-w, 0 will replace "Hello there!" with "\\[Hello there!\\]\\(#hello-there\\)"
- Select "Hello there!" alt-ctrl-w, 1 will replace "Hello there!" with "\\[Hello there!\\]\\(./fileOne.md#hello-there\\)"
- 
[](#)1