OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Sun, 12 Jul 2020 14:55:05 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Sun, 12 Jul 2020 14:55:05 +0000 (23:55 +0900)
_data/carbon.yml
_parcel/behaviors/search-form.js
_parcel/helpers/search.js
_sass/2017/base/base.scss
vim.md

index 89ef88e..338a315 100644 (file)
@@ -1,2 +1,3 @@
 enabled: true
-src: https://pubsrv.devhints.io/carbon.js?serve=CE7IK5QM&placement=devhintsio
+#src: https://pubsrv.devhints.io/carbon.js?serve=CE7IK5QM&placement=devhintsio
+src: https://pubsrv.devhints.io/carbon.js?serve=CE7IK5QM&placement=devhintsio&cd=pubsrv.devhints.io
index 2cf2435..d89a9e6 100644 (file)
@@ -9,7 +9,7 @@ onmount('[data-js-search-form]', function () {
   on(this, 'submit', (e) => {
     e.preventDefault()
 
-    const link = document.querySelector('a[data-search-index]:visible')
+    const link = document.querySelector('a[data-search-index]:not([hidden])')
     const href = link && link.getAttribute('href')
 
     if (href) window.location = href
index db65486..65036a2 100644 (file)
@@ -10,7 +10,8 @@ import qsa from 'dom101/query-selector-all'
 
 export function showAll() {
   qsa('[data-search-index]').forEach((el) => {
-    el.removeAttribute('aria-hidden')
+    el.removeAttribute('hidden')
+    el.style.removeProperty('display')
   })
 }
 
@@ -31,10 +32,12 @@ export function show(val) {
     .join('')
 
   qsa('[data-search-index]').forEach((el) => {
-    el.setAttribute('aria-hidden', true)
+    el.setAttribute('hidden', true)
+    el.style.setProperty('display', "none")
   })
 
   qsa(selectors).forEach((el) => {
-    el.removeAttribute('aria-hidden')
+    el.removeAttribute('hidden')
+    el.style.removeProperty('display')
   })
 }
index 60f80b5..58926a4 100644 (file)
@@ -55,11 +55,6 @@ a:hover {
   color: $base-b3;
 }
 
-/* prism.js adds area-hidden which it probably shouldn't */
-[aria-hidden]:not(.line-highlight) {
-  display: none !important;
-}
-
 // No tooltips on mobile
 @media (max-width: 580px) {
   .hint--bottom {
diff --git a/vim.md b/vim.md
index 0553d52..a1cdfc7 100644 (file)
--- a/vim.md
+++ b/vim.md
@@ -37,7 +37,8 @@ Getting started
 | Shortcut            | Description       |
 | ---                 | ---               |
 | `h` `j` `k` `l`     | Arrow keys        |
-| `<C-U>` _/_ `<C-D>` | Page up/page down |
+| `<C-U>` _/_ `<C-D>` | Half-page up/down |
+| `<C-B>` _/_ `<C-F>` | Page up/down      |
 {: .-shortcuts}
 
 #### Words
@@ -79,11 +80,22 @@ Getting started
 | ---      | ---                      |
 | `zz`     | Center this line         |
 | `zt`     | Top this line            |
+| `zb`     | Bottom this line         |
 | `H`      | Move to top of screen    |
 | `M`      | Move to middle of screen |
 | `L`      | Move to bottom of screen |
 {: .-shortcuts}
 
+#### Search
+
+| Shortcut  | Description                         |
+| ---       | ---                                 |
+| `n`       | Next matching search pattern        |
+| `N`       | Previous match                      |
+| `*`       | Next whole word under cursor        |
+| `#`       | Previous whole word under cursor    |
+{: .-shortcuts}
+
 #### Tab pages
 
 | Shortcut              | Description                     |
@@ -186,6 +198,7 @@ Operators let you operate in a range of text (defined by *motion*). These are pe
 | ---      | ---                             |
 | `>`      | Indent right                    |
 | `<`      | Indent left                     |
+| `=`      | Autoindent                      |
 | ---      | ---                             |
 | `g~`     | Swap case                       |
 | `gU`     | Uppercase                       |
@@ -354,15 +367,31 @@ Do these in visual or normal mode.
 
 ### Marks
 
-| Shortcut        | Description                                        |
-| ---             | ---                                                |
-| <code>`^</code> | Last position of cursor in insert mode             |
-| <code>`.</code> | Last change                                        |
-| <code>``</code> | Last jump                                          |
-| ---             | ---                                                |
-| `ma`            | Mark this cursor position as `a`                   |
-| <code>`a</code> | Jump to the cursor position `a`                    |
-| `'a`            | Jump to the beginning of the line with position `a`|
+| Shortcut           | Description                                          |
+| ---                | ---                                                  |
+| <code>`^</code>    | Last position of cursor in insert mode               |
+| <code>`.</code>    | Last change in current buffer                        |
+| <code>`"</code>    | Last exited current buffer                           |
+| <code>`0</code>    | In last file edited                                  |
+| <code>''</code>    | Back to line in current buffer where jumped from     |
+| <code>``</code>    | Back to position in current buffer where jumped from |
+| <code>`[</code>    | To beginning of previously changed or yanked text    |
+| <code>`]</code>    | To end of previously changed or yanked text          |
+| <code>`&lt;</code> | To beginning of last visual selection                |
+| <code>`&gt;</code> | To end of last visual selection                      |
+| ---                | ---                                                  |
+| `ma`               | Mark this cursor position as `a`                     |
+| <code>`a</code>    | Jump to the cursor position `a`                      |
+| `'a`               | Jump to the beginning of the line with position `a`  |
+| <code>d'a</code>   | Delete from current line to line of mark `a`         |
+| <code>d`a</code>   | Delete from current position to position of mark `a` |
+| <code>c'a</code>   | Change text from current line to line of `a`         |
+| <code>y`a</code>   | Yank text from current position to position of `a`   |
+| ---                | ---                                                  |
+| `:marks`           | List all current marks                               |
+| `:delm a`          | Delete mark `a`                                      |
+| `:delm a-d`        | Delete marks `a`, `b`, `c`, `d`                      |
+| `:delm abc`        | Delete marks `a`, `b`, `c`                           |
 {: .-shortcuts}
 
 ### Misc