aboutsummaryrefslogtreecommitdiff
path: root/commands.lst
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to bind arbitrary functions.Arthur Williams2021-10-131-36/+0
| | | | | | | | | | | | | | | | | | | | | | | Before all the predated commands where kept in an array and their indexes were used in bindings. This meant that users couldn't add their own functions from the config file. Now key/mouse bindings have been changed to to store the function ptr (wrapped in a cmd_t struct to also store the mode) directly instead. General cleanup done in this commit: Defined `MODE_ALL` instead of using magic number. For example, suppose one had bindings like: { 0, XK_q, g_quit, None }, { ShitMask, XK_q, {quit_err}, None } { ControlMask, XK_q, {quit_err, .mode=MODE_IMAGE}, None } The existing binding `q` has been left unchanged and is defined the same way. However, the new hypothetical binding `Shift-q` can be used to call the custom function quit_err in any mode (default). `Ctrl-q` on the other hand will be called only on image mode. Closes #50
* code-style: fix consistency issues all over the codebase (#94)Berke Kocaoğlu2021-10-111-1/+0
| | | | | | | | | | | | | | | * remove duplicate comment * remove empty tabs and blank lines * move macros and globals ontop * comment to seprate function implementation * fix alignment * switch to *argv[] similar to other suckless code * kill all empty last lines * append comment to endif * reuse existing ARRLEN macro * comment fall through * use while (true) everywhere Co-authored-by: NRK <nrk@disroot.org>
* Add mark range functionDaniel Lublin2018-06-091-0/+1
| | | | | Sets the marked state of all images ranging from the latest marked/unmarked image to the current image, to the state of that latest toggled image.
* Improve mouse supportBert Münnich2017-10-061-0/+1
| | | | | | | | | | | | None of the mouse mappings uses a keyboard modifier, making it possible to access the most basic features by only using the mouse. Next/previous image with left button depending on cursor position, middle button for dragging, right button for switching to thumnail mode and wheel for zooming. Users can keep the old behaviour by simply not adapting the changes to the buttons array in config.def.h to their config.h file.
* Apply gamma value on thumbnails too; fixes issue #193Bert Münnich2015-01-051-1/+1
|
* Added thumbnail zooming...Bert Münnich2014-09-281-1/+1
| | | | | | - Key mappings +/- are now general commands - Use JPG as thumbnail cache file format instead of PNG - Fixes issue #161
* Added command to remove all image marks, bound to Ctrl-m; fixes issue #163Bert Münnich2014-08-171-0/+1
|
* Revised command structure and key and mouse button mappingsBert Münnich2014-07-231-0/+34