https://github.com/rokf/howl-abbrex
HTML abbreviations for Howl
https://github.com/rokf/howl-abbrex
abbreviations editor-plugin howl-editor html
Last synced: 4 months ago
JSON representation
HTML abbreviations for Howl
- Host: GitHub
- URL: https://github.com/rokf/howl-abbrex
- Owner: rokf
- License: mit
- Created: 2017-10-04T18:29:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T19:34:55.000Z (about 8 years ago)
- Last Synced: 2025-09-21T19:02:19.709Z (9 months ago)
- Topics: abbreviations, editor-plugin, howl-editor, html
- Language: MoonScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HTML abbreviation expansion
This bundle adds 2 new commands to Howl, `abbrex` and `abbrex-tight`.
The first one does multi-line expansion, the second one produces
a compact single line output.
The tight alternative requires the abbreviation to be selected. It replaces the selection
with the output.
The regular `abbrex` command expects the abbreviation to be the only
content in the active line appart from white-space (tabs,spaces).
It doesn't require selection. The output is indented according to the
current `buffer-mode`.
#### Installation
First make sure you install [html-abrex](https://github.com/rokf/html-abbrex).
Howl uses **LuaJIT** so you need to install that via LuaRocks for Lua **5.1**.
```
cd ~/.howl/bundles
git clone https://github.com/rokf/howl-abbrex
```
You can assign the commands to shortcuts in your `init.{lua,moon}`, ie.
```
howl.bindings.push {
editor = {
alt_e = 'abbrex-tight',
shift_alt_e = 'abbrex'
}
}
```