From e37752d41efd522f3a25413b05d202644df3e10c Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Sat, 3 Jul 2021 11:12:23 +0530 Subject: [PATCH] Document keys and fix links --- docs/en/src/message.md | 14 +++++------ docs/en/src/modes.md | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 7 deletions(-) diff --git a/docs/en/src/message.md b/docs/en/src/message.md index 0c41fd0..4d74587 100644 --- a/docs/en/src/message.md +++ b/docs/en/src/message.md @@ -2,7 +2,7 @@ Message ======= You can think of xplr as a server. Just like web servers listen to HTTP -requests, xplr listens to [messages](full-list-of-messages). +requests, xplr listens to [messages](#full-list-of-messages). You can send these messages to an xplr session in the following ways: @@ -502,7 +502,7 @@ Remove an existing [filter](filtering.md). **YAML:** `ToggleNodeFilter: { filter = Filter, input = string }` -Remove a [filter](filter.md) if it exists, else, add a it. +Remove a [filter](filtering.md) if it exists, else, add a it. **YAML Example:** `ToggleNodeFilter: { filter: RelativePathDoesStartWith, input: foo }` @@ -581,7 +581,7 @@ Reverse a node [sorter](sorting.md#sorter). **YAML:** `ToggleNodeSorter: { sorter: Sorter, reverse = bool }` -Remove a [sorter](#sorting.md#sorter) if it exists, else, add a it. +Remove a [sorter](sorting.md#sorter) if it exists, else, add a it. **YAML Example:** `ToggleSorterSorter: {sorter: ByRelativePath, reverse: false }` @@ -826,7 +826,7 @@ information and send messages via environment variables and temporary files called "pipe"s. These environment variables and files are only available when a command is being executed. -Visit the [**fzf integration tutorial**](modes.html#tutorial-adding-a-new-mode) +Visit the [**fzf integration tutorial**](modes.md#tutorial-adding-a-new-mode) for example. ### Environment variables @@ -880,9 +880,9 @@ exposed directly via environment variables, like multi-line string. #### XPLR_PIPE_MSG_IN -Append new-line delimited messages to this pipe in [YAML](www.yaml.org) (or -[JSON](www.json.org)) syntax. These messages will be read and handled by xplr -after the command execution. +Append new-line delimited messages to this pipe in [YAML](https://www.yaml.org) +(or [JSON](https://www.json.org)) syntax. These messages will be read and +handled by xplr after the command execution. #### XPLR_PIPE_SELECTION_OUT diff --git a/docs/en/src/modes.md b/docs/en/src/modes.md index 0ce6208..c440954 100644 --- a/docs/en/src/modes.md +++ b/docs/en/src/modes.md @@ -167,6 +167,60 @@ Default action to perform in case of a keyboard input not mapped via any of the [on_special_character](#on_special_character) field. +Key +--- + +A key can be one of the following: + +- 0 +- 1 +... +- 9 + +- a +- b +... +- z + +- A +- B +... +- Z + +- f1 +- f2 +... +- f12 + +- ctrl-a +- ctrl-b +... +- ctrl-z + +- alt-a +- alt-b +... +- alt-z + +- backspace +- left +- right +- up +- down +- home +- end +- pageUp +- pageDown +- backTab +- delete +- insert +- enter +- tab +- esc + +And finally, special characters - including space (`" "`). + + Action ------