Skip to content

Commit b1e6972

Browse files
Migrate simple text navigation lists (#1656)
This migrates the navigation actions and before or after lists to list files. This does not migrate the navigation target names list. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3e0ca4f commit b1e6972

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
list: user.before_or_after
2+
-
3+
before: BEFORE
4+
after: AFTER
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
list: user.navigation_action
2+
-
3+
4+
move: GO
5+
extend: EXTEND
6+
select: SELECT
7+
clear: DELETE
8+
cut: CUT
9+
copy: COPY

plugin/text_navigation/text_navigation.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@
2727
desc="Names for regular expressions for common things to navigate to, for instance a word with or without underscores",
2828
)
2929

30-
ctx.lists["self.navigation_action"] = {
31-
"move": "GO",
32-
"extend": "EXTEND",
33-
"select": "SELECT",
34-
"clear": "DELETE",
35-
"cut": "CUT",
36-
"copy": "COPY",
37-
}
38-
ctx.lists["self.before_or_after"] = {
39-
"before": "BEFORE",
40-
"after": "AFTER",
41-
# DEFAULT is also a valid option as input for this capture, but is not directly accessible for the user.
42-
}
4330
navigation_target_names = {
4431
"word": r"\w+",
4532
"small": r"[A-Z]?[a-z0-9]+",

0 commit comments

Comments
 (0)