Skip to content

Commit

Permalink
website: terminal keys png
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorg committed Sep 30, 2023
1 parent 03a4d0a commit 42be8d6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion docs/user-guide/interactive-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ shells available today.

### Hotkeys

A full breakdown of supported hotkeys is available at [terminal-keys.md](terminal-keys.md).


A full breakdown of supported hotkeys is available in the [terminal-keys](terminal-keys.md)
guide.

### Autocompletion

Expand Down
9 changes: 8 additions & 1 deletion gen/user-guide/interactive-shell.inc.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ shells available today.

### Hotkeys

A full breakdown of supported hotkeys is available at [terminal-keys.md](terminal-keys.md).
{{ if env "DOCGEN_TARGET=vuepress" }}
<!-- markdownlint-disable -->
<a href="terminal-keys.md" alt="supported hotkeys"><img src="/keyboard.png" class="centre-image"/></a>
<!-- markdownlint-restore -->
{{ end }}

A full breakdown of supported hotkeys is available in the [terminal-keys](terminal-keys.md)
guide.

### Autocompletion

Expand Down
Binary file added gen/vuepress/public/keyboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions utils/readline/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const (
seqAltY = "\x1by"
seqAltZ = "\x1bz"

seqAltShiftA = "\x1bA"
/*seqAltShiftA = "\x1bA"
seqAltShiftB = "\x1bB"
seqAltShiftC = "\x1bC"
seqAltShiftD = "\x1bD"
Expand All @@ -214,5 +214,5 @@ const (
seqAltShiftW = "\x1bW"
seqAltShiftX = "\x1bX"
seqAltShiftY = "\x1bY"
seqAltShiftZ = "\x1bZ"
seqAltShiftZ = "\x1bZ"*/
)
2 changes: 1 addition & 1 deletion utils/readline/preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (rl *Instance) previewDrawStr(preview []string, size *PreviewSizeT) (string
output += fmt.Sprintf(cursorForwf, size.Forward)
output += "╰" + hr + "╯\r\n"

output+=rl.previewMoveToPromptStr(size)
output += rl.previewMoveToPromptStr(size)
return output, nil
}

Expand Down

0 comments on commit 42be8d6

Please sign in to comment.