Skip to content

Add the shortcut "Open sidebar width prompt" #98

@ralf3u

Description

@ralf3u

By pressing the shortcut "Open sidebar width prompt for shortcut", that will only execute if sidebar is enabled, a window would appear where the cursor is blinking in an empty field, like in the "Find in Page"-window, and where one can type numbers between 10 and 90. Then type in that empty field for example 45, what stands for 45% sidebar width, and press enter. By pressing the enter key, the window will disappear and the splitter would jump to 45% sidebar width. At the same time the value of the key sidebar_width_shortcut of preview.conf would change to 45 (sidebar_width_shortcut is used by the shortcut "Toggle only between Editor&Sidebar and Sidebar").

Remarks

  1. This shortcut is for example for users who are often changing the value of the key sidebar_width_shortcut of the preferences of Preview and who want a faster way, or for users who don't want to use the mouse for changing the position of the splitter.
  2. The item "Width size..." could be added to the context-menu, just before the item "Preferences". "Width size..." is an other name than "Open sidebar width prompt for shortcut" because in a context-menu, it is better to use a short name.

Version
Preview 0.2.4+r34.g99df95e

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions