mirror of https://codeberg.org/anemofilia/zero
radio: files: sioyek: Update keys_user.config
parent
8f9db14d05
commit
a6df946d66
|
@ -1,23 +1,3 @@
|
||||||
|
|
||||||
# you can edit this file to change keybindings lines that start with '#' are comments
|
|
||||||
# the syntax is pretty simple. Some examples:
|
|
||||||
#command k (command is executed when k is pressed)
|
|
||||||
#command <C-k> (command is executed when k is pressed while holding control)
|
|
||||||
#command K (command is executed when K is entered, which is shift+k)
|
|
||||||
#command <A-k> (command is executed when k is pressed while holding alt)
|
|
||||||
#command + (command is executed when = is pressed while holding shift)
|
|
||||||
#command <C-S-k> (command is executed when k is pressed while holding control and shift)
|
|
||||||
#command gg (command is executed when g is pressed twice)
|
|
||||||
#command gt (command is executed when g is pressed and then t is pressed)
|
|
||||||
#command g<C-n>Dt (command is executed when g is pressed and then n is pressed while holding\
|
|
||||||
# control and then d is pressed while holding shift and then t is pressed)
|
|
||||||
# you can execute multiple commands using the following syntax:
|
|
||||||
#command1;command2;command3 <keybinding>
|
|
||||||
# for more information see the documentation at https://sioyek-documentation.readthedocs.io/
|
|
||||||
|
|
||||||
|
|
||||||
# ---------- NAVIGATION AND ZOOM ----------
|
|
||||||
|
|
||||||
# Goto the beginning of document.
|
# Goto the beginning of document.
|
||||||
goto_beginning gk
|
goto_beginning gk
|
||||||
|
|
||||||
|
@ -28,18 +8,13 @@ goto_end gj
|
||||||
goto_page_with_page_number gg
|
goto_page_with_page_number gg
|
||||||
|
|
||||||
## Goto left/right/bottom/top side of the page
|
## Goto left/right/bottom/top side of the page
|
||||||
goto_left <A-h>
|
goto_left gh
|
||||||
goto_right <A-l>
|
goto_right gl
|
||||||
goto_top_of_page <A-k>
|
|
||||||
goto_bottom_of_page <A-j>
|
|
||||||
|
|
||||||
# Goto left/right side of the page ignoring white margins
|
# Goto left/right side of the page ignoring white margins
|
||||||
goto_left_smart ^
|
goto_left_smart ^
|
||||||
goto_right_smart $
|
goto_right_smart $
|
||||||
|
|
||||||
# Goto the top-right side of page. Useful for two column documents
|
|
||||||
#goto_top_of_page;goto_right_smart zz
|
|
||||||
|
|
||||||
# Movement (can be prefixed with a number)
|
# Movement (can be prefixed with a number)
|
||||||
move_down j
|
move_down j
|
||||||
move_up k
|
move_up k
|
||||||
|
@ -49,14 +24,12 @@ move_right h
|
||||||
# Goto forward for one page width. (can be prefixed with a number)
|
# Goto forward for one page width. (can be prefixed with a number)
|
||||||
# (note that going forward for one page width is not usually what you want because if
|
# (note that going forward for one page width is not usually what you want because if
|
||||||
# the page is larger than the screen you will miss some content. What you usually want is screen_down)
|
# the page is larger than the screen you will miss some content. What you usually want is screen_down)
|
||||||
next_page J
|
next_page <A-j>
|
||||||
previous_page K
|
previous_page <A-k>
|
||||||
|
|
||||||
# Go down one screen width (can be prefixed with a number which tells how many screen widths should we go down)
|
# Go down one screen width (can be prefixed with a number which tells how many screen widths should we go down)
|
||||||
screen_down <space>
|
screen_down J
|
||||||
screen_up <S-<space>>
|
screen_up K
|
||||||
screen_down <pagedown>
|
|
||||||
screen_up <pageup>
|
|
||||||
|
|
||||||
# Goto the next/prev chapter
|
# Goto the next/prev chapter
|
||||||
next_chapter cj
|
next_chapter cj
|
||||||
|
@ -72,9 +45,6 @@ prev_state <C-<left>>
|
||||||
# Create a new sioyek window
|
# Create a new sioyek window
|
||||||
new_window <space><ret>
|
new_window <space><ret>
|
||||||
|
|
||||||
# Close the current sioyek window
|
|
||||||
#close_window <C-w>
|
|
||||||
|
|
||||||
## Search and switch between sioyek windows
|
## Search and switch between sioyek windows
|
||||||
goto_window gw
|
goto_window gw
|
||||||
|
|
||||||
|
@ -86,11 +56,7 @@ next_state <C-<right>>
|
||||||
goto_toc <tab>
|
goto_toc <tab>
|
||||||
|
|
||||||
# Zoom
|
# Zoom
|
||||||
#zoom_in +
|
|
||||||
fit_to_page_width =
|
fit_to_page_width =
|
||||||
#zoom_out -
|
|
||||||
|
|
||||||
## Zoom in/out on the mouse cursor (instead of center of screen)
|
|
||||||
zoom_in_cursor +
|
zoom_in_cursor +
|
||||||
zoom_out_cursor -
|
zoom_out_cursor -
|
||||||
|
|
||||||
|
@ -100,15 +66,9 @@ rotate_counterclockwise R
|
||||||
|
|
||||||
# Automatically set the zoom level and horizontal offset such that the current page is centered horizontally and
|
# Automatically set the zoom level and horizontal offset such that the current page is centered horizontally and
|
||||||
# it fills the screen width
|
# it fills the screen width
|
||||||
fit_to_page_width a
|
fit_to_page_width s
|
||||||
# Same as fit_to_page_with but ignores page margins
|
|
||||||
fit_to_page_width_smart A
|
|
||||||
|
|
||||||
## Similar to fit_to_page_width, but for height
|
fit_to_page_height S
|
||||||
fit_to_page_height s
|
|
||||||
|
|
||||||
## Similar to fit_to_page_width_smart but for height
|
|
||||||
fit_to_page_height_smart S
|
|
||||||
|
|
||||||
## Same as fit_to_page_width_smart, but instead of filling the screen width, it fills the ratio of screen that is
|
## Same as fit_to_page_width_smart, but instead of filling the screen width, it fills the ratio of screen that is
|
||||||
## configured in `prefs_user.config` using `fit_to_page_width_ratio` config. See https://github.com/ahrm/sioyek/issues/162#issuecomment-1059738730.
|
## configured in `prefs_user.config` using `fit_to_page_width_ratio` config. See https://github.com/ahrm/sioyek/issues/162#issuecomment-1059738730.
|
||||||
|
@ -162,7 +122,7 @@ previous_item N
|
||||||
|
|
||||||
# ---------- BOOKMARKS ----------
|
# ---------- BOOKMARKS ----------
|
||||||
# Add a bookmark in the current location (opens a text input where you can specify the bookmark text)
|
# Add a bookmark in the current location (opens a text input where you can specify the bookmark text)
|
||||||
add_bookmark b
|
add_bookmark ab
|
||||||
delete_bookmark db
|
delete_bookmark db
|
||||||
|
|
||||||
# Open bookmarks menu of the current document.
|
# Open bookmarks menu of the current document.
|
||||||
|
@ -174,13 +134,13 @@ goto_bookmark_g gB
|
||||||
# ---------- HIGHLIGHTS ----------
|
# ---------- HIGHLIGHTS ----------
|
||||||
# You can select a piece of text and press the `add_highlight` shortcut followed by a symbol (a character from a-z) to highlight
|
# You can select a piece of text and press the `add_highlight` shortcut followed by a symbol (a character from a-z) to highlight
|
||||||
# the text
|
# the text
|
||||||
add_highlight <space>h
|
add_highlight ah
|
||||||
# Goto highlights of current document
|
# Goto highlights of current document
|
||||||
goto_highlight <space>gh
|
goto_highlight gh
|
||||||
# Goto highlights of all documents
|
# Goto highlights of all documents
|
||||||
goto_highlight_g <space>gH
|
goto_highlight_g gH
|
||||||
# Left click on a highlight and then press the `delete_highlight` shortcut to delete it.
|
# Left click on a highlight and then press the `delete_highlight` shortcut to delete it.
|
||||||
delete_highlight <space>dh
|
delete_highlight dh
|
||||||
|
|
||||||
# Sets the highlight type to be used for other operations (the default highlight type is 'a')
|
# Sets the highlight type to be used for other operations (the default highlight type is 'a')
|
||||||
#set_select_highlight_type
|
#set_select_highlight_type
|
||||||
|
@ -205,16 +165,14 @@ goto_prev_highlight gNh
|
||||||
# Mark the current location. After pressing the mark button, you must enter a symbol (a letter from a-z or A-Z).
|
# Mark the current location. After pressing the mark button, you must enter a symbol (a letter from a-z or A-Z).
|
||||||
# this marks the current location in the file with the entered symbol. Afterwards you will be able to return to
|
# this marks the current location in the file with the entered symbol. Afterwards you will be able to return to
|
||||||
# the locations of the marks using goto_mark command.
|
# the locations of the marks using goto_mark command.
|
||||||
# example: mm (marks the current location in the file with a mark named 'm')
|
set_mark am
|
||||||
set_mark m
|
|
||||||
# Goto a previously set mark. After pressing goto_mark you must enter a symbol associated with a previously set mark.
|
# Goto a previously set mark. After pressing goto_mark you must enter a symbol associated with a previously set mark.
|
||||||
# example: `m (goes to the location of the mark named m)
|
goto_mark gm
|
||||||
goto_mark `
|
|
||||||
|
|
||||||
# ---------- PORTALS ----------
|
# ---------- PORTALS ----------
|
||||||
# If we are in default state, goto portal state with the current location in document as the portal source
|
# If we are in default state, goto portal state with the current location in document as the portal source
|
||||||
# if we are already in the portal state, create the portal with the current location as destination.
|
# if we are already in the portal state, create the portal with the current location as destination.
|
||||||
portal p
|
portal ap
|
||||||
|
|
||||||
# Delete the portal with the closest source to current location
|
# Delete the portal with the closest source to current location
|
||||||
delete_portal dp
|
delete_portal dp
|
||||||
|
@ -224,8 +182,7 @@ goto_portal gp
|
||||||
|
|
||||||
# Similar to goto_portal, except when prev_state is called, the destination of the portal is update to be the state
|
# Similar to goto_portal, except when prev_state is called, the destination of the portal is update to be the state
|
||||||
# on which prev_state is called
|
# on which prev_state is called
|
||||||
edit_portal P
|
edit_portal ep
|
||||||
edit_portal <S-<tab>>
|
|
||||||
|
|
||||||
# Open/Close the helper window for portals
|
# Open/Close the helper window for portals
|
||||||
toggle_window_configuration <f12>
|
toggle_window_configuration <f12>
|
||||||
|
@ -240,9 +197,6 @@ copy y
|
||||||
|
|
||||||
toggle_fullscreen <f11>
|
toggle_fullscreen <f11>
|
||||||
|
|
||||||
# Toggles whether we highlight pdf links or not
|
|
||||||
toggle_highlight <f1>
|
|
||||||
|
|
||||||
# open command line
|
# open command line
|
||||||
command :
|
command :
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue