Now works with Fedora
This commit is contained in:
1615
configs/dotfiles/espanso/match/base.yml
Normal file
1615
configs/dotfiles/espanso/match/base.yml
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,56 @@
|
||||
# html-utils-package
|
||||
|
||||
Make HTML5 easier and less time-consuming with this [Espanso](https://espanso.org/) package!
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have already installed [Espanso](https://espanso.org/install/) first.
|
||||
|
||||
```
|
||||
espanso install html-utils-package
|
||||
```
|
||||
|
||||
That's all. You can start using the package. Open your favorite editor and type `::docskel` to test!
|
||||
|
||||
# Preview
|
||||
|
||||
You can choose between all of them from the Search-bar:
|
||||

|
||||
|
||||
# Triggers
|
||||
|
||||
Here you can see some of them:
|
||||
|
||||
| Trigger | Result |
|
||||
| ------------- | ------------- |
|
||||
| `::docskel` | Generates an empty document with `utf-8` and `viewport` headers (unindented) |
|
||||
| `::doctype` | `<!DOCTYPE html>` |
|
||||
| `::meta-charset` | `<meta charset="">` |
|
||||
| `::meta-utf-8` | `<meta charset="UTF-8">` |
|
||||
| `::meta-viewport` | `<meta name="viewport" content="width=device-width, initial-scale=1">` |
|
||||
| `::meta-author` | `<meta name="author" content="">` |
|
||||
| `::meta-desc` | `<meta name="description" content="">` |
|
||||
| `::meta-keywords` | `<meta name="keywords" content="">` |
|
||||
| `::title` | `<title></title>` |
|
||||
| `::div` | `<div></div>` |
|
||||
| `::html` | `<html></html>` |
|
||||
| `::head` | `<head></head>` |
|
||||
| `::body` | `<body></body>` |
|
||||
| `::a` | `<a href=""></a>` |
|
||||
| `::br` | `<br>` |
|
||||
| `::button` | `<button type="button"></button> ` |
|
||||
| `::style` | `<style></style>` |
|
||||
| `::css` | `<link rel="stylesheet" type="text/css" href="">` |
|
||||
| `::script` | `<script></script>` |
|
||||
| `::js` | `<script type="text/javascript" src=""></script>` |
|
||||
| `::form` | `<form action="" method=""></form>` |
|
||||
| `::label` | `<label for=""></label>` |
|
||||
| `::input-submit` | `<input type="submit" value="">` |
|
||||
| `::input-text` | `<input type="text" name="" id="">` |
|
||||
| `::input-password` | `<input type="password" name="" id="">` |
|
||||
| `::input-radio` | `<input type="radio" name="" id="" value="">` |
|
||||
| `::input-checkbox` | `<input type="checkbox" name="" id="" value="">` |
|
||||
| `::input-file` | `<input type="file" name="" id="">` |
|
||||
|
||||
# Contributions
|
||||
If you feel like there's any important tag/snippet missing, feel free to create a Pull Request or open an [Issue](https://github.com/woodenbell/html-utils-package/issues/new).
|
@ -0,0 +1,7 @@
|
||||
author: Gabriel Barbosa
|
||||
description: A simple package to make coding in HTML5 easier.
|
||||
name: html-utils-package
|
||||
title: HTML utilities package
|
||||
version: 2.0.1
|
||||
homepage: "https://github.com/woodenbell/html-utils-package"
|
||||
tags: ["frontend", "html", "development"]
|
@ -0,0 +1,2 @@
|
||||
---
|
||||
hub
|
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
@ -0,0 +1,239 @@
|
||||
matches:
|
||||
- trigger: "::doctype"
|
||||
label: "HTML - doctype"
|
||||
replace: >-
|
||||
<!DOCTYPE html>
|
||||
|
||||
- trigger: "::meta-charset"
|
||||
label: "HTML - meta-charset"
|
||||
replace: >-
|
||||
<meta charset="$|$">
|
||||
|
||||
- trigger: "::meta-utf-8"
|
||||
label: "HTML - meta-utf-8"
|
||||
replace: >-
|
||||
<meta charset="UTF-8">
|
||||
|
||||
- trigger: "::meta-viewport"
|
||||
label: "HTML - meta-viewport"
|
||||
replace: >-
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
- trigger: "::meta-author"
|
||||
label: "HTML - meta-autor"
|
||||
replace: >-
|
||||
<meta name="author" content="$|$">
|
||||
|
||||
- trigger: "::meta-desc"
|
||||
label: "HTML - meta-desc"
|
||||
replace: >-
|
||||
<meta name="description" content="$|$">
|
||||
|
||||
- trigger: "::meta-keywords"
|
||||
label: "HTML - meta-keywords"
|
||||
replace: >-
|
||||
<meta name="keywords" content="$|$">
|
||||
|
||||
- trigger: "::title"
|
||||
label: "HTML - title"
|
||||
replace: >-
|
||||
<title>$|$</title>
|
||||
|
||||
- trigger: "::div"
|
||||
label: "HTML - div"
|
||||
replace: >-
|
||||
<div>$|$</div>
|
||||
|
||||
- trigger: "::html"
|
||||
label: "HTML - html"
|
||||
replace: >-
|
||||
<html>$|$</html>
|
||||
|
||||
- trigger: "::head"
|
||||
label: "HTML - head"
|
||||
replace: >-
|
||||
<head>$|$</head>
|
||||
|
||||
- trigger: "::body"
|
||||
label: "HTML - body"
|
||||
replace: >-
|
||||
<body>$|$</body>
|
||||
|
||||
- trigger: "::inline-css"
|
||||
label: "HTML - inline-css"
|
||||
replace: style="{{element}}:$|$;"
|
||||
vars:
|
||||
- name: element
|
||||
type: choice
|
||||
params:
|
||||
values:
|
||||
- "color"
|
||||
- "background-color"
|
||||
- "padding"
|
||||
- "font-family"
|
||||
- "font-size"
|
||||
- "font-weight"
|
||||
- "border"
|
||||
- "padding"
|
||||
- "margin"
|
||||
|
||||
- trigger: "::a"
|
||||
label: "HTML - a"
|
||||
replace: >-
|
||||
<a href="$|$"></a>
|
||||
|
||||
- trigger: "::2a"
|
||||
label: "HTML - 2a"
|
||||
replace: <a href="{{clipboard}}" target="_blank" rel="noopener noreferrer">$|$</a>
|
||||
vars:
|
||||
- name: "clipboard"
|
||||
type: "clipboard"
|
||||
|
||||
- trigger: "::br"
|
||||
label: "HTML - br"
|
||||
replace: >-
|
||||
<br>
|
||||
|
||||
- trigger: "::p"
|
||||
label: "HTML - p"
|
||||
replace: >-
|
||||
<p>$|$</p>
|
||||
|
||||
- trigger: "::block"
|
||||
label: "HTML - block"
|
||||
replace: >-
|
||||
<blockquote>$|$</blockquote>
|
||||
|
||||
- trigger: "::button"
|
||||
label: "HTML - button"
|
||||
replace: >-
|
||||
<button type="button">$|$</button>
|
||||
|
||||
- trigger: "::style"
|
||||
label: "HTML - style"
|
||||
replace: >-
|
||||
<style>$|$</style>
|
||||
|
||||
- trigger: "::css"
|
||||
label: "HTML - css"
|
||||
replace: >-
|
||||
<link rel="stylesheet" type="text/css" href="$|$">
|
||||
|
||||
- trigger: "::ul"
|
||||
label: "HTML - ul"
|
||||
replace: |
|
||||
<ul>
|
||||
<li>$|$</li>
|
||||
</ul>
|
||||
|
||||
- trigger: "::li"
|
||||
label: "HTML - li"
|
||||
replace: >-
|
||||
<li>$|$</li>
|
||||
|
||||
- trigger: "::table"
|
||||
label: "HTML - table"
|
||||
replace: |
|
||||
<table width="$|$" border="" align="">
|
||||
<tr>
|
||||
<td width=""></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
- trigger: "::td"
|
||||
label: "HTML - td"
|
||||
replace: >-
|
||||
<td>$|$</td>
|
||||
|
||||
- trigger: "::select"
|
||||
label: "HTML - select"
|
||||
replace: |
|
||||
<select name="$|$" id="">
|
||||
<option value=""></option>
|
||||
</select>
|
||||
|
||||
- trigger: "::optgroup"
|
||||
label: "HTML - optgroup"
|
||||
replace: |
|
||||
<select name="$|$" id="">
|
||||
<optgroup label="">
|
||||
<option value=""></option>
|
||||
</optgroup>
|
||||
</select>
|
||||
|
||||
- trigger: "::option"
|
||||
label: "HTML - option"
|
||||
replace: >-
|
||||
<option value="$|$"></option>
|
||||
|
||||
- trigger: "::script"
|
||||
label: "HTML - script"
|
||||
replace: >-
|
||||
<script>$|$</script>
|
||||
|
||||
- trigger: "::js"
|
||||
label: "HTML - js"
|
||||
replace: >-
|
||||
<script type="text/javascript" src="$|$"></script>
|
||||
|
||||
- trigger: "::form"
|
||||
label: "HTML - form"
|
||||
replace: >-
|
||||
<form action="$|$" method=""></form>
|
||||
|
||||
- trigger: "::label"
|
||||
label: "HTML - label"
|
||||
replace: >-
|
||||
<label for="$|$"></label>
|
||||
|
||||
- trigger: "::img"
|
||||
label: "HTML - img"
|
||||
replace: >-
|
||||
<img src="$|$" alt="">
|
||||
|
||||
- trigger: "::input-submit"
|
||||
label: "HTML - input-submit"
|
||||
replace: >-
|
||||
<input type="submit" value="$|$">
|
||||
|
||||
- trigger: "::input-text"
|
||||
label: "HTML - input-text"
|
||||
replace: >-
|
||||
<input type="text" name="$|$" id="">
|
||||
|
||||
- trigger: "::input-password"
|
||||
label: "HTML - input-password"
|
||||
replace: >-
|
||||
<input type="password" name="$|$" id="">
|
||||
|
||||
- trigger: "::input-radio"
|
||||
label: "HTML - input-radio"
|
||||
replace: >-
|
||||
<input type="radio" name="$|$" id="" value="">
|
||||
|
||||
- trigger: "::input-checkbox"
|
||||
label: "HTML - input-checkbox"
|
||||
replace: >-
|
||||
<input type="checkbox" name="$|$" id="" value="">
|
||||
|
||||
- trigger: "::input-file"
|
||||
label: "HTML - input-file"
|
||||
replace: >-
|
||||
<input type="file" name="$|$" id="">
|
||||
|
||||
- trigger: "::docskel"
|
||||
label: "HTML - docskel"
|
||||
replace: |
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>$|$</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 José Ferreira
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,22 @@
|
||||
# Available matches
|
||||
| Trigger | Replace |
|
||||
|--------------|--------------------------------------------------------|
|
||||
| :block: | \```🖰\n``` |
|
||||
| :code: | \`🖰` |
|
||||
| :h1: | # |
|
||||
| :h2: | ## |
|
||||
| :h3: | ### |
|
||||
| :h4: | #### |
|
||||
| :h5: | ##### |
|
||||
| :h6: | ###### |
|
||||
| :bold: | \*\*🖰** |
|
||||
| :italic: | \*🖰\* |
|
||||
| :strike: | \~\~🖰~~ |
|
||||
| :url: | \[🖰]() |
|
||||
| :image: | !\[](🖰) |
|
||||
| :horizontal: | ___\n |
|
||||
| :task: | - [ ] |
|
||||
| :donetask: | - [x] |
|
||||
| :collapse: | \<details>\<summary>🖰\</summary>\n\<p>\n\n\</p>\n\</details> |
|
||||
|
||||
**Note: The 🖰 symbol is where your mouse cursor will be after the trigger and \n represents a new line.**
|
@ -0,0 +1,7 @@
|
||||
author: "Jos\xE9 Ferreira"
|
||||
description: A simple package to make writing Markdown easier
|
||||
name: markdown-shortcuts
|
||||
title: Markdown shortcuts
|
||||
version: 0.1.0
|
||||
homepage: "https://github.com/jpmvferreira/espanso-mega-pack"
|
||||
tags: ["markdown", "development", "writing"]
|
@ -0,0 +1,2 @@
|
||||
---
|
||||
hub
|
@ -0,0 +1,65 @@
|
||||
name: markdown-shortcuts
|
||||
parent: default
|
||||
|
||||
matches:
|
||||
- triggers: [":block:", ":mb:"]
|
||||
replace: |-
|
||||
```$|$
|
||||
```
|
||||
force_clipboard: true
|
||||
|
||||
- triggers: [":code:", ":mc:"]
|
||||
replace: |-
|
||||
`$|$`
|
||||
force_clipboard: true
|
||||
|
||||
- trigger: ":h1:"
|
||||
replace: "#"
|
||||
|
||||
- trigger: ":h2:"
|
||||
replace: "##"
|
||||
|
||||
- trigger: ":h3:"
|
||||
replace: "###"
|
||||
|
||||
- trigger: ":h4:"
|
||||
replace: "####"
|
||||
|
||||
- trigger: ":h5:"
|
||||
replace: "#####"
|
||||
|
||||
- trigger: ":h6:"
|
||||
replace: "######"
|
||||
|
||||
- trigger: ":bold:"
|
||||
replace: "**$|$**"
|
||||
|
||||
- trigger: ":italic:"
|
||||
replace: "*$|$*"
|
||||
|
||||
- trigger: ":strike:"
|
||||
replace: "~~$|$~~"
|
||||
|
||||
- trigger: ":url:"
|
||||
replace: "[$|$]()"
|
||||
|
||||
- triggers: [":image:", ":img:"]
|
||||
replace: ""
|
||||
|
||||
- triggers: [":horizontal:", ":mh:"]
|
||||
replace: "___"
|
||||
|
||||
- triggers: [":task:", ":mt:"]
|
||||
replace: "- [ ] "
|
||||
|
||||
- triggers: [":taskdone:", ":mtd:"]
|
||||
replace: "- [x] "
|
||||
|
||||
- triggers: [":collapse:", ":mcol:"]
|
||||
replace: |-
|
||||
<details>
|
||||
<summary></summary>
|
||||
|
||||
$|$
|
||||
</details>
|
||||
force_clipboard: true
|
27
configs/dotfiles/espanso/match/packages/misspell-en/LICENSE
Normal file
27
configs/dotfiles/espanso/match/packages/misspell-en/LICENSE
Normal file
@ -0,0 +1,27 @@
|
||||
Copyright (c) 2019 Timo Runge <me@timorunge.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -0,0 +1,22 @@
|
||||
# misspell-en
|
||||
|
||||
misspell-en is a espanso package which is replacing commonly misspelled english words.
|
||||
The package is based on [github.com/client9/misspell](https://github.com/client9/misspell).
|
||||
|
||||
## Installation
|
||||
|
||||
Install the package with:
|
||||
|
||||
```
|
||||
espanso install misspell-en
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Type `yuo` and see what's happening.
|
||||
|
||||
## License
|
||||
|
||||
[BSD 3-Clause "New" or "Revised" License](LICENSE)
|
||||
|
||||
Misspell is [MIT](https://github.com/client9/misspell/blob/master/LICENSE).
|
@ -0,0 +1,7 @@
|
||||
author: Timo Runge
|
||||
description: Replace commonly misspelled english words.
|
||||
name: misspell-en
|
||||
title: Misspell EN
|
||||
version: 0.1.2
|
||||
homepage: "https://github.com/timorunge/espanso-misspell-en"
|
||||
tags: ["spell-correction", "english"]
|
@ -0,0 +1,2 @@
|
||||
---
|
||||
hub
|
112189
configs/dotfiles/espanso/match/packages/misspell-en/package.yml
Normal file
112189
configs/dotfiles/espanso/match/packages/misspell-en/package.yml
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user