FAQ
Can I move around with vim keys (h, j, k, l)?
Section titled “Can I move around with vim keys (h, j, k, l)?”Yes: Glimt lets you give any action your own keys.
In Preferences → Keyboard shortcuts, Change gives an action the next key you press, and Reset gives it its default keys back. Change gives one key, which replaces the action's default keys: give Next the key L, and Space and → no longer go to the next image.
In the config file, an action can have several keys. Quit Glimt, and put this line in
~/.config/glimt/config (or change the line that starts with keys=, if there is one):
keys=Next=L;Next=J;Next=Space;Next=ArrowRight;Next=ArrowDown;Prev=H;Prev=K;Prev=Backspace;Prev=ArrowLeft;Prev=ArrowUp;First=G;First=Home;Last=Shift+G;Last=End| Key | Does |
|---|---|
l, j |
Next image (Space and the arrow keys still work) |
h, k |
Previous image |
g |
First image (Glimt has single keys, so not vim's gg) |
G (Shift+G) |
Last image |
Good to know:
- Your own keys win over the defaults of other actions. With the line above, K (the
histogram), J (logarithmic histogram) and L (next layout) no longer do that; they are still
in the View menu, and can get other keys, for example
Histogram=Shift+K. Ctrl+H, Ctrl+J and Ctrl+K are not affected. - The names of the actions are those in the config file:
Next,Prev,First,Last,ZoomIn,ZoomOut,FullScreenand so on. Preferences → Keyboard shortcuts and Help → Keyboard Shortcuts list every action with its keys. - q already leaves full screen and closes dialogs; Ctrl+Q quits.
- / puts the cursor in the file name search, as in vim (Glimt 0.21.0 and later).