commit f4803a256e49d1b8b3996fb0ce08d2d4a29a604f
parent 1b14012924b3058a1156577d0b9cfc196acb58bf
Author: Alex Balgavy <alex@balgavy.eu>
Date: Tue, 7 Mar 2023 11:42:15 +0100
sioyek: update settings
Diffstat:
4 files changed, 223 insertions(+), 108 deletions(-)
diff --git a/sioyek/dark.config b/sioyek/dark.config
@@ -0,0 +1,97 @@
+# Use dark mode by default (deprecated, better add `toggle_dark_mode` to `startup_commands` )
+default_dark_mode 1
+
+# The color with which the screen is cleared before rendering the pdf (this is the background color of the application and not the PDF file)
+background_color 0.97 0.97 0.97
+dark_mode_background_color 0.0 0.0 0.0
+
+# Showing full white text on black background can be irritating for the eye, we can dim the whites a little bit using the contrast option
+dark_mode_contrast 0.8
+
+# Highlight color when text is selected using mouse
+# text_highlight_color 1.0 1.0 0.0
+text_highlight_color 1.0 1.0 0.0
+
+# The color of highlight ruler which is displayed when right click is pressed
+visual_mark_color 0.0 0.0 0.0 0.1
+
+# Highlight color when text is a search match
+search_highlight_color 0.0 1.0 0.0
+
+# Hihglight color for PDF links (note that highlight is off by default
+# and can only be seen by performing a toggle_highlight command. See keys.config for more details)
+link_highlight_color 0.0 0.0 1.0
+
+# Hihglight color for synctex forward search highlights
+synctex_highlight_color 1.0 0.0 1.0
+
+## Background color to use when executing `toggle_custom_color`
+custom_background_color 0.180 0.204 0.251
+
+## Text color to use when executing `toggle_custom_color`
+custom_text_color 0.847 0.871 0.914
+
+## Color of status bar background
+status_bar_color 0 0 0
+
+## Color of status bar text
+status_bar_text_color 0.7 0.7 0.7
+
+## Configure the appearance of page separator
+#page_separator_width 2
+#page_separator_color 0.9 0.9 0.9
+
+# you can specify the exact highlight color for each of 26 different highlight types
+#Amethyst
+highlight_color_a 0.94 0.64 1.00
+#Blue
+highlight_color_b 0.00 0.46 0.86
+#Caramel
+highlight_color_c 0.60 0.25 0.00
+#Damson
+highlight_color_d 0.30 0.00 0.36
+#Ebony
+highlight_color_e 0.10 0.10 0.10
+#Forest
+highlight_color_f 0.00 0.36 0.19
+#Green
+highlight_color_g 0.17 0.81 0.28
+#Honeydew
+highlight_color_h 1.00 0.80 0.60
+#Iron
+highlight_color_i 0.50 0.50 0.50
+#Jade
+highlight_color_j 0.58 1.00 0.71
+#Khaki
+highlight_color_k 0.56 0.49 0.00
+#Lime
+highlight_color_l 0.62 0.80 0.00
+#Mallow
+highlight_color_m 0.76 0.00 0.53
+#Navy
+highlight_color_n 0.00 0.20 0.50
+#Orpiment
+highlight_color_o 1.00 0.64 0.02
+#Pink
+highlight_color_p 1.00 0.66 0.73
+#Quagmire
+highlight_color_q 0.26 0.40 0.00
+#Red
+highlight_color_r 1.00 0.00 0.06
+#Sky
+highlight_color_s 0.37 0.95 0.95
+#Turquoise
+highlight_color_t 0.00 0.60 0.56
+#Uranium
+highlight_color_u 0.88 1.00 0.40
+#Violet
+highlight_color_v 0.45 0.04 1.00
+#Wine
+highlight_color_w 0.60 0.00 0.00
+#Xanthin
+highlight_color_x 1.00 1.00 0.50
+#Yellow
+highlight_color_y 1.00 1.00 0.00
+#Zinnia
+highlight_color_z 1.00 0.31 0.02
+
diff --git a/sioyek/keys_user.config b/sioyek/keys_user.config
@@ -39,14 +39,14 @@ goto_page_with_page_number <home>
#goto_bottom_of_page <unbound>
# Goto left/right side of the page ignoring white margins
-goto_left_smart <S-^>
-goto_right_smart <S-$>
+goto_left_smart 0
+goto_right_smart $
# Movement (can be prefixed with a number)
# move_down <down>
# move_up <up>
-move_left <right>
-move_right <left>
+move_left l
+move_right h
# 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 becaue if
@@ -102,8 +102,8 @@ goto_toc t
zoom_in <S-+>
zoom_in =
zoom_out -
-zoom_in <S-j>
-zoom_out <S-k>
+zoom_in J
+zoom_out K
## Zoom in/out on the mouse cursor (instead of center of screen)
# zoom_in_cursor <unbound>
@@ -117,9 +117,9 @@ rotate_counterclockwise <S-r>
# it fills the screen width
fit_to_page_width zw
# Same as fit_to_page_with but ignores page margins
-fit_to_page_width_smart z<S-w>
+fit_to_page_width_smart zW
fit_to_page_height zh
-fit_to_page_height_smart z<S-h>
+fit_to_page_height_smart zH
# Goto the top-right side of page. Usefull for two column documents
goto_top_of_page;goto_right_smart zr
@@ -132,13 +132,14 @@ open_document o
# Open an embedded file dialog in sioyek
# open_document_embedded <C-o>
# Open an embedded file dialog in sioyek rooted in the directory of current opened file
-open_document_embedded_from_current_path <C-S-o>
+open_document_embedded_from_current_path <C-O>
# Open a searchable list of previously opened documents.
-open_prev_doc <S-o>
+open_prev_doc O
-## Opens the last document opened is sioyek. It is usefull when you want to quickly toggle between two documents
-#open_last_document <unbound>
+## Opens the last document opened is sioyek. It is usefull when you want to
+#quickly toggle between two documents
+open_last_document <C-6>
## Keyboard shortcut to enter visual mark mode (instead of right clicking)
#enter_visual_mark_mode <unbound>
@@ -186,7 +187,7 @@ goto_bookmark_g g<S-b>
# ---------- 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
# the text
-add_highlight h
+# add_highlight h
# Search in highlights of current document
goto_highlight gh
# Search in highlights of all documents
@@ -275,7 +276,7 @@ toggle_dark_mode i
#toggle_custom_color <f8>
# Toggle synctex mode. When in synctex mode, right clicking on a pdf launches the corresponding latex page.
-toggle_synctex <S-s>
+toggle_synctex S
## Perform a synctex search under the mouse cursor
#synctex_under_cursor <unbound>
@@ -287,7 +288,7 @@ toggle_mouse_drag_mode <f6>
toggle_visual_scroll <C-v>
# In visual scroll mode, create an overview to/go to/portal to the definition in highlighted line
-overview_definition l
+# overview_definition l
goto_definition <C-]>
portal_to_definition ]
diff --git a/sioyek/light.config b/sioyek/light.config
@@ -0,0 +1,96 @@
+# Use dark mode by default (deprecated, better add `toggle_dark_mode` to `startup_commands` )
+default_dark_mode 0
+
+# The color with which the screen is cleared before rendering the pdf (this is the background color of the application and not the PDF file)
+background_color 0.97 0.97 0.97
+dark_mode_background_color 0.0 0.0 0.0
+
+# Showing full white text on black background can be irritating for the eye, we can dim the whites a little bit using the contrast option
+dark_mode_contrast 0.8
+
+# Highlight color when text is selected using mouse
+# text_highlight_color 1.0 1.0 0.0
+text_highlight_color 1.0 1.0 0.0
+
+# The color of highlight ruler which is displayed when right click is pressed
+visual_mark_color 0.0 0.0 0.0 0.1
+
+# Highlight color when text is a search match
+search_highlight_color 0.0 1.0 0.0
+
+# Hihglight color for PDF links (note that highlight is off by default
+# and can only be seen by performing a toggle_highlight command. See keys.config for more details)
+link_highlight_color 0.0 0.0 1.0
+
+# Hihglight color for synctex forward search highlights
+synctex_highlight_color 1.0 0.0 1.0
+
+## Background color to use when executing `toggle_custom_color`
+custom_background_color 0.180 0.204 0.251
+
+## Text color to use when executing `toggle_custom_color`
+custom_text_color 0.847 0.871 0.914
+
+## Color of status bar background
+status_bar_color 1 1 1
+## Color of status bar text
+status_bar_text_color 0.2 0.2 0.2
+
+## Configure the appearance of page separator
+#page_separator_width 2
+#page_separator_color 0.9 0.9 0.9
+
+# you can specify the exact highlight color for each of 26 different highlight types
+#Amethyst
+highlight_color_a 0.94 0.64 1.00
+#Blue
+highlight_color_b 0.00 0.46 0.86
+#Caramel
+highlight_color_c 0.60 0.25 0.00
+#Damson
+highlight_color_d 0.30 0.00 0.36
+#Ebony
+highlight_color_e 0.10 0.10 0.10
+#Forest
+highlight_color_f 0.00 0.36 0.19
+#Green
+highlight_color_g 0.17 0.81 0.28
+#Honeydew
+highlight_color_h 1.00 0.80 0.60
+#Iron
+highlight_color_i 0.50 0.50 0.50
+#Jade
+highlight_color_j 0.58 1.00 0.71
+#Khaki
+highlight_color_k 0.56 0.49 0.00
+#Lime
+highlight_color_l 0.62 0.80 0.00
+#Mallow
+highlight_color_m 0.76 0.00 0.53
+#Navy
+highlight_color_n 0.00 0.20 0.50
+#Orpiment
+highlight_color_o 1.00 0.64 0.02
+#Pink
+highlight_color_p 1.00 0.66 0.73
+#Quagmire
+highlight_color_q 0.26 0.40 0.00
+#Red
+highlight_color_r 1.00 0.00 0.06
+#Sky
+highlight_color_s 0.37 0.95 0.95
+#Turquoise
+highlight_color_t 0.00 0.60 0.56
+#Uranium
+highlight_color_u 0.88 1.00 0.40
+#Violet
+highlight_color_v 0.45 0.04 1.00
+#Wine
+highlight_color_w 0.60 0.00 0.00
+#Xanthin
+highlight_color_x 1.00 1.00 0.50
+#Yellow
+highlight_color_y 1.00 1.00 0.00
+#Zinnia
+highlight_color_z 1.00 0.31 0.02
+
diff --git a/sioyek/prefs_user.config b/sioyek/prefs_user.config
@@ -1,30 +1,8 @@
+source ./light.config
+
# (can be 0 or 1) if set, shows a notification on startup if a new version of sioyek is available
check_for_updates_on_startup 0
-# The color with which the screen is cleared before rendering the pdf (this is the background color of the application and not the PDF file)
-background_color 0.97 0.97 0.97
-dark_mode_background_color 0.0 0.0 0.0
-
-# Showing full white text on black background can be irritating for the eye, we can dim the whites a little bit using the contrast option
-dark_mode_contrast 0.8
-
-# Highlight color when text is selected using mouse
-# text_highlight_color 1.0 1.0 0.0
-text_highlight_color 1.0 1.0 0.0
-
-# The color of highlight ruler which is displayed when right click is pressed
-visual_mark_color 0.0 0.0 0.0 0.1
-
-# Highlight color when text is a search match
-search_highlight_color 0.0 1.0 0.0
-
-# Hihglight color for PDF links (note that highlight is off by default
-# and can only be seen by performing a toggle_highlight command. See keys.config for more details)
-link_highlight_color 0.0 0.0 1.0
-
-# Hihglight color for synctex forward search highlights
-synctex_highlight_color 1.0 0.0 1.0
-
# Urls to use when executing external_search commands
search_url_s https://scholar.google.com/scholar?q=
search_url_l http://gen.lib.rus.ec/scimag/?q=
@@ -66,7 +44,6 @@ should_launch_new_window 0
# %1 expands to the name of the file and %2 expans to the line number.
#inverse_search_command "C:\path\to\vscode\Code.exe" -r -g %1:%2
-# you can specify the exact highlight color for each of 26 different highlight types
# When moving to the next line using visual marker, this setting specifies the distance of the market to the top of the screen in fractions of screen size (center of the screen is zero, top of the screen is one)
visual_mark_next_page_fraction 0.75
@@ -92,9 +69,6 @@ rerender_overview 1
# Can improve appearance in very high-resolution screens
# linear_filter 0
-# Use dark mode by default (deprecated, better add `toggle_dark_mode` to `startup_commands` )
-default_dark_mode 0
-
# If set, we sort the bookmarks by their location instead of their creation time
sort_bookmarks_by_location 1
@@ -111,18 +85,9 @@ sort_bookmarks_by_location 1
## Semicolon-separated list of command to execute upon sioyek startup
# startup_commands toggle_visual_scroll;toggle_dark_mode
-## Background color to use when executing `toggle_custom_color`
-custom_background_color 0.180 0.204 0.251
-## Text color to use when executing `toggle_custom_color`
-custom_text_color 0.847 0.871 0.914
-
# Normally mouse wheel zooms in on the middle of the screen, but if this is set to 1, we zoom in on the cursor
wheel_zoom_on_cursor 0
-## Color of status bar background
-status_bar_color 1 1 1
-## Color of status bar text
-status_bar_text_color 0.2 0.2 0.2
## Font size of the status bar text
status_bar_font_size 14
@@ -139,9 +104,7 @@ status_bar_font_size 14
## Touchpad/scrollwhell sensitivity
#touchpad_sensitivity 1.0
-## Configure the appearance of page separator
-#page_separator_width 2
-#page_separator_color 0.9 0.9 0.9
+case_sensitive_search 0
# Ratio of page width to use for `fit_to_page_width_ratio` command
fit_to_page_width_ratio 0.75
@@ -176,6 +139,17 @@ create_table_of_contents_if_not_exists 1
# Limits the maximum size of created table of contents
max_created_toc_size 5000
+# type "command %" instead of "command <S-%>"
+use_legacy_keybinds 0
+
+# indexes the document text and considerably speeds of searching
+super_fast_search 1
+
+# displays a statusbar message when we are close to a portal.
+show_close_portal_in_statusbar 1
+
+hover_overview 0
+
# Warn the user on the command line only when redefining keys inside
# the same file. When set to 1, sioyek will warn when redefining keys
# from other files also
@@ -210,56 +184,3 @@ prerender_next_page_presentation 1
# control_right_click_command some_command
# alt_right_click_command some_command
-#Amethyst
-highlight_color_a 0.94 0.64 1.00
-#Blue
-highlight_color_b 0.00 0.46 0.86
-#Caramel
-highlight_color_c 0.60 0.25 0.00
-#Damson
-highlight_color_d 0.30 0.00 0.36
-#Ebony
-highlight_color_e 0.10 0.10 0.10
-#Forest
-highlight_color_f 0.00 0.36 0.19
-#Green
-highlight_color_g 0.17 0.81 0.28
-#Honeydew
-highlight_color_h 1.00 0.80 0.60
-#Iron
-highlight_color_i 0.50 0.50 0.50
-#Jade
-highlight_color_j 0.58 1.00 0.71
-#Khaki
-highlight_color_k 0.56 0.49 0.00
-#Lime
-highlight_color_l 0.62 0.80 0.00
-#Mallow
-highlight_color_m 0.76 0.00 0.53
-#Navy
-highlight_color_n 0.00 0.20 0.50
-#Orpiment
-highlight_color_o 1.00 0.64 0.02
-#Pink
-highlight_color_p 1.00 0.66 0.73
-#Quagmire
-highlight_color_q 0.26 0.40 0.00
-#Red
-highlight_color_r 1.00 0.00 0.06
-#Sky
-highlight_color_s 0.37 0.95 0.95
-#Turquoise
-highlight_color_t 0.00 0.60 0.56
-#Uranium
-highlight_color_u 0.88 1.00 0.40
-#Violet
-highlight_color_v 0.45 0.04 1.00
-#Wine
-highlight_color_w 0.60 0.00 0.00
-#Xanthin
-highlight_color_x 1.00 1.00 0.50
-#Yellow
-highlight_color_y 1.00 1.00 0.00
-#Zinnia
-highlight_color_z 1.00 0.31 0.02
-