Skip to content

Commit

Permalink
Add the less key binding ov-less.yaml
Browse files Browse the repository at this point in the history
Fix issue #28.
  • Loading branch information
noborus committed Dec 2, 2020
1 parent a8cd61d commit 6835f5c
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,39 @@ In other applications, it is pasted from the clipboard (often by pressing the ri

### Style customization

You can customize the following items.

* StyleAlternate
* StyleHeader
* StyleOverStrike
* StyleOverLine

### Key binding customization
Specifies the color name for the foreground and background colors.
Specify bool values for Bold, Blink, Shaded, Italic, and Underline.

[Example]

```yaml
StyleAlternate:
Background: "gray"
Bold: true
Underline: true
```
### Key binding customization
You can customize key bindings.
[Example]
```yaml
down:
- "Enter"
- "Down"
- "ctrl+N"
up:
- "Up"
- "ctrl+p"
```
See [ov.yaml](https://github.com/noborus/ov/blob/master/ov.yaml) for more information..
128 changes: 128 additions & 0 deletions ov-less.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# This is a file with less key bindings set.
# Copy it to ~/.ov.yaml or start it with `ov --config ov-less.yaml`.
# Thanks to hupfdule (Marco Herrn) for the less keybinding information.

# TabWidth is the tab width number.
TabWidth: 4
# Style
# String of the color name: Foreground, Background
# Boolean: Bold, Blink, Dim, Italic, Underline
StyleAlternate:
Background: "gray"
StyleHeader:
Bold: true
StyleOverStrike:
Bold: true
StyleOverLine:
Underline: true

# Keybind
# Special key
# "Enter","Backspace","Tab","Backtab","Esc",
# "Backspace2", "Delete", "Insert",
# "Up", "Down", "Left", "Right", "Home", "End",
# "F1...F64"
# Modifier key
# "ctrl", "alt", "meta", "shift"
# Connect with modifier key + key
# "ctrl+c"
KeyBind:
exit:
- "Escape"
- "q"
cancel:
- "ctrl+c"
write_exit:
- "Q"
sync:
- "r"
- "R"
- "ctrl+l"
- "ctrl+r"
help:
- "h"
- "ctrl+alt+c"
logdoc:
- "ctrl+alt+e"
down:
- "e"
- "ctrl+e"
- "j"
- "J"
- "ctrl+j"
- "Enter"
- "Down"
up:
- "y"
- "Y"
- "ctrl+y"
- "k"
- "K"
- "ctrl+K"
- "Up"
top:
- "Home"
bottom:
- "End"
left:
- "left"
right:
- "right"
half_left:
- "ctrl+left"
half_right:
- "ctrl+right"
page_up:
- "PageUp"
- "b"
- "alt+v"
page_down:
- "PageDown"
- "ctrl+v"
- "space"
- "alt+space"
- "f"
- "z"
page_half_up:
- "u"
- "ctrl+u"
page_half_down:
- "d"
- "ctrl+d"
mark:
- "m"
next_mark:
- ">"
previous_mark:
- "<"
alter_rows_mode:
- "C"
line_number_mode:
- "G"
search:
- "/"
wrap_mode:
- "w"
- "W"
column_mode:
- "c"
backsearch:
- "?"
delimiter:
- "d"
header:
- "H"
tabwidth:
- "t"
goto:
- "g"
next_search:
- "n"
next_backsearch:
- "N"
next_doc:
- "]"
previous_doc:
- "["
toggle_mouse:
- "ctrl+alt+r"
4 changes: 4 additions & 0 deletions ov.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# This is the ov config file.
# Copy it to ~/.ov.yaml or start it with `ov --config ov.yaml`.

# TabWidth is the tab width number.
TabWidth: 4

# Style
# String of the color name: Foreground, Background
# Boolean: Bold, Blink, Dim, Italic, Underline
Expand Down

0 comments on commit 6835f5c

Please sign in to comment.