diff --git a/_sass/2017/markdown/table.scss b/_sass/2017/markdown/table.scss index 463ac3e38..d4224e84f 100644 --- a/_sass/2017/markdown/table.scss +++ b/_sass/2017/markdown/table.scss @@ -70,16 +70,26 @@ } } +@mixin shortcut-span { + font-size: 1rem; + padding: 5px 6px; + padding-left: 8px; // compensation + background: $gray-bg; + border-radius: 3px; + margin-right: 2px; + letter-spacing: 0.1em; + color: $base-text; +} + .MarkdownBody table.-shortcuts { td:first-child > code { - font-size: 1rem; - padding: 5px 6px; - padding-left: 8px; // compensation - background: $gray-bg; - border-radius: 3px; - margin-right: 2px; - letter-spacing: 0.1em; - color: $base-text; + @include shortcut-span; + } +} + +.MarkdownBody table.-shortcuts-right { + td:last-child > code { + @include shortcut-span; } } diff --git a/spacemacs.md b/spacemacs.md new file mode 100644 index 000000000..86a0c1248 --- /dev/null +++ b/spacemacs.md @@ -0,0 +1,148 @@ +--- +title: Spacemacs +layout: 2017/sheet +category: Vim +updated: 2018-02-12 +intro: | + [Spacemacs](http://spacemacs.org) is a distribution for Emacs. +--- + +Shortcuts +--------- +{: .-three-column} + +### Layers + +| Shortcut | Description | +| --- | --- | +| `SPC` `f` | File | +| `SPC` `p` | Project | +| `SPC` `t` | Toggle | +| `SPC` `b` | Buffer | +| --- | --- | +| `SPC` `m` | Major mode | +| `,` | Same as `SPC` `m` | +| --- | --- | +| `SPC` `g` | Git | +| `SPC` `l` | Layout | +| `SPC` `a` | Apps | +| `SPC` `h` | Help | +{: .-shortcuts.-prime} + +### More + +| Shortcut | Description | +| --- | --- | +| `SPC` `SPC` | M-x | +| `SPC` `'` | Terminal | +| `SPC` `/` | Search | +| `SPC` `0` | Neotree | + +### `SPC` `h** - Help + +| Description | Shortcut | +| --- | --- | +| **Spacemacs help** | `SPC` | +| --- | --- | +| Layers | `l` | +{: .-shortcuts-right} + +### `SPC` `f` - File + +| Description | Shortcut | +| --- | --- | +| **Save** | `s` | +| Copy | `c` | +{: .-shortcuts-right} + +### `SPC` `b` - Buffer + +| Description | Shortcut | +| --- | --- | +| Next buffer (`:bnext`) | `n` | +| Previous buffer (`:bprev`) | `p` | +{: .-shortcuts-right} + +### `SPC` `f` `e` - Config + +| Description | Shortcut | +| --- | --- | +| **Edit config** | `d` | +| Edit config and template | `D` | +| --- | --- | +| Reload config | `R` | +{: .-shortcuts} + +### `SPC` `w` - Window + +| Description | Shortcut | +| --- | --- | +| Help | `.` | +| | --- | +| Select | `h` / `j` / `k` / `l` | +| Move | `H` / `J` / `K` / `L` | +| --- | --- | +| Split | `s` | +| Split & follow | `S` | +| --- | --- | +| Split vert | `v` | +| Split vert & follow | `V` | +{: .-shortcuts-right} + +### `SPC` `p` - Project + +| Description | Shortcut | +| --- | --- | +| **Switch project** | `l` | +| Switch project | `p` | +| --- | --- | +| **Open files & recent** | `h` | +| Open files | `f` | +| --- | --- | +| **Show tree** | `t` | +| --- | --- | +| Open terminal | `'` | +| Open terminal in root | `$` `t` | +{: .-shortcuts-right} + +### `SPC` `l` `w` - Workspaces + +| Description | Shortcut | +| --- | --- | +| Help | `?` | +| --- | --- | +| Switch previous layout | `TAB` | +| **Switch to nth workspace** | `0` ... `9` | +| --- | --- | +| Rename | `R` | +{: .-shortcuts-right} + +### `SPC` `t` - Toggle + +| Description | Shortcut | +| --- | --- | +| Line numbers | `n` | +{: .-shortcuts + +### `SPC` `j` - Jump + +| Description | Shortcut | +| --- | --- | +| Character | `j` | +| Line | `l` | +| Word | `w` | +{: .-shortcuts-right} + +## Major modes + +### Markdown + +| Shortcut | Description | +| --- | --- | +| `,` `-` | Insert horizontal rule | +| `,` `h` `1` | Insert H1 | +{: .-shortcuts} + +## References + +- [Spacemacs documentation](https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org) _(github.com)_ diff --git a/wip/spacemacs.md b/wip/spacemacs.md deleted file mode 100644 index 0d8f9785d..000000000 --- a/wip/spacemacs.md +++ /dev/null @@ -1,99 +0,0 @@ ---- -title: Spacemacs -layout: 2017/sheet -category: Vim -updated: 2018-02-12 -intro: | - [Spacemacs](http://spacemacs.org) is a distribution for Emacs. ---- - -Shortcuts ---------- -{: .-three-column} - -### Layers - -| Shortcut | Description | -| --- | --- | -| `SPC` `f` | File | -| `SPC` `p` | Project | -| `SPC` `t` | Toggle | -| `SPC` `b` | Buffer | -| --- | --- | -| `SPC` `m` | Major mode | -| `,` | Same as `SPC` `m` | -| --- | --- | -| `SPC` `g` | Git | -| `SPC` `h` | Help | -{: .-shortcuts} - -### `SPC` `h` - Help - -| Shortcut | Description | -| --- | --- | -| `SPC` | Spacemacs help | -| --- | --- | -| `l` | Layers | -{: .-shortcuts} - -### `SPC` `f` - File - -| Shortcut | Description | -| --- | --- | -| `s` | Save | -| `c` | Copy | -{: .-shortcuts} - -### `SPC` `b` - Buffer - -| Shortcut | Description | -| --- | --- | -| `n` | Next buffer (`:bnext`) | -| `p` | Previous buffer (`:bprev`) | -{: .-shortcuts} - -### `SPC` `f` `e` - Config - -| Shortcut | Description | -| --- | --- | -| `d` | Edit config | -| `D` | Edit config and template | -| --- | --- | -| `R` | Reload config | -{: .-shortcuts} - -### `SPC` `w` - Window - -| Shortcut | Description | -| --- | --- | -| `.` | Help | -| --- | | -| `h/j/k/l` | Select | -| `H/J/K/L` | Move | -| --- | --- | -| `s` | Split | -| `S` | Split & follow | -| --- | --- | -| `v` | Split vert | -| `V` | Split vert & follow | -{: .-shortcuts} - -### `SPC` `p` - Project - -| Shortcut | Description | -| --- | --- | -| `p` | Open project | -| --- | --- | -| `h` | Open files | -| `f` | Open files | -{: .-shortcuts} - -## Major modes - -### Markdown - -| Shortcut | Description | -| --- | --- | -| `,` `-` | Insert horizontal rule | -| `,` `h` `1` | Insert H1 | -{: .-shortcuts}