From 2f71c0b50e95f6bb7ad57313942d02dc45066c80 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 18 Apr 2016 21:22:38 +0200 Subject: [PATCH] Change `` to `` in Hints mode Using `` for marking _all_ elements was nice, because `` usually means "select all". However, it conflicts with the "hold ctrl when typing the last hint character to toggle if the link opens in a new tab or not" feature. If the last character was an "a" that wouldn't happen; instead, the `` command would be invoked. This commit changes to `` which should be conflict free. --- documentation/api.md | 2 +- documentation/commands.md | 8 ++++---- extension/lib/defaults.coffee | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/documentation/api.md b/documentation/api.md index 08eba8d..7329815 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -778,7 +778,7 @@ The available type strings depend on `id`: - scrollable: Like “scrollable” when `id` is “normal” (see above). The type string can also be `'other'`, regardless of what `id` is. That is the -case for elements for markers added by the `` Hints mode command. +case for elements for markers added by the `` Hints mode command. The function must return an object like the `info` parameter (with the `type` and `semantic` properties). diff --git a/documentation/commands.md b/documentation/commands.md index ad6384f..4feca76 100644 --- a/documentation/commands.md +++ b/documentation/commands.md @@ -282,10 +282,10 @@ like `F`. [hints\_toggle\_in\_background].) Finally, if the element you wanted to interact with didn’t get a hint marker you -can try pressing `` while the hints are still shown. That will give hint -markers to _every_ element on screen. Warning: This can be very slow, and result -in an overwhelming amount of hint markers. See this as an escape hatch if you -_really_ want to avoid using the mouse at all costs. +can try pressing `` while the hints are still shown. That will give +hint markers to _every_ element on screen. Warning: This can be very slow, and +result in an overwhelming amount of hint markers. See this as an escape hatch if +you _really_ want to avoid using the mouse at all costs. [hint-matcher]: api.md#vimfxhintmatcher [hint chars]: options.md#hint-chars diff --git a/extension/lib/defaults.coffee b/extension/lib/defaults.coffee index da46c8d..859f96d 100644 --- a/extension/lib/defaults.coffee +++ b/extension/lib/defaults.coffee @@ -118,7 +118,7 @@ shortcuts = '': 'rotate_markers_backward' '': 'delete_hint_char' '': 'increase_count' - '': 'mark_everything' + '': 'mark_everything' 'ignore': '': -- 2.39.3