Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add keybind to scroll to image center (#203) | Nick Hanley | 2022-01-15 | 1 | -0/+2 |
| | | | There are keybinds for scrolling to the edges of an image but there's no way back to the center. This is particularly annoying while zooming. | ||||
* | make thumbnail bindings configureable via config.h (#167) | N-R-K | 2022-01-10 | 1 | -0/+6 |
| | | | | | | | | | | | | | | this allows for configuring thumbnail mode mouse bindings similar to image mode bindings. however we can't put the thumbnails bindings into the existing buttons[] array due to fallthrough. For example M3 would switch mode and then end up selecting an image. which is why thumbnail bindings have been put into it's own array `buttons_tns[]` and `buttons[]` has been renamed to `buttons_img[]` for consistency. Closes: https://github.com/nsxiv/nsxiv/issues/131 | ||||
* | fix -Wstrict-prototype warning | NRK | 2022-01-06 | 1 | -1/+1 |
| | | | | looks like i missed one in ff88908 | ||||
* | specify func argument and related cleanup (#183) | N-R-K | 2021-12-19 | 1 | -34/+34 |
| | | | | | | | | | | | | * specifies the function argument type in commands.h compared to leaving it unspecified. all the functions in cmd_t must have arg_t as it's argument. * changes to commands.h will now trigger a rebuild - this restores old behavior prior to 12efa0e * cg_quit now uses it's argument as exit status * DestroyNotify invokes cg_quit rather than calling exit directly. * Explicitly pass EXIT_SUCCESS to cgquit in keybinding Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr> | ||||
* | Add ability to bind arbitrary functions. | Arthur Williams | 2021-10-13 | 1 | -0/+83 |
| | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | One header file for type definitions and function declarations | Bert Münnich | 2017-10-16 | 1 | -59/+0 |
| | |||||
* | Simplified command arguments | Bert Münnich | 2015-01-11 | 1 | -1/+1 |
| | |||||
* | Revised command structure and key and mouse button mappings | Bert Münnich | 2014-07-23 | 1 | -39/+18 |
| | |||||
* | Use a checkerboard background for alpha layer; fixes issue #138 | Bert Münnich | 2014-04-06 | 1 | -1/+1 |
| | |||||
* | Removed fit-win-to-img command | Bert Münnich | 2014-02-04 | 1 | -1/+0 |
| | |||||
* | Merged pull request #129 | Bert Münnich | 2014-01-31 | 1 | -0/+1 |
| | |||||
* | Fixed handling of overloaded key mappings | Bert Münnich | 2014-01-08 | 1 | -31/+37 |
| | | | | | Issue described here: https://bbs.archlinux.org/viewtopic.php?pid=1117294#p1117294 | ||||
* | Slideshow mode is back, in a simplified version | Bert Münnich | 2014-01-04 | 1 | -1/+2 |
| | |||||
* | Moved external shell commands into exec/key-handler script | Bert Münnich | 2014-01-02 | 1 | -2/+0 |
| | | | | | Gets called on all unset key mappings. Arguments are: key combo and current file. Thanks to Francesco Orsenigo (xarvh) for the idea. | ||||
* | Proper support for Ctrl/Shift/Alt modifiers in key & mouse mappings | Bert Münnich | 2014-01-02 | 1 | -3/+2 |
| | |||||
* | Merge remote-tracking branch 'baskerville/reverse-marks' | Bert Münnich | 2013-11-14 | 1 | -0/+1 |
|\ | |||||
| * | Add command to reverse marked images | Bastien Dejean | 2013-11-14 | 1 | -0/+1 |
| | | |||||
* | | Add support for changing the gamma value | András Mohari | 2013-11-13 | 1 | -0/+1 |
|/ | |||||
* | Added file marks; fixes issue #94 | Bert Münnich | 2013-08-10 | 1 | -0/+2 |
| | | | | | | | | - Command it_toggle_image_mark (bound to 'm') toggles mark of current image - Command it_navigate_marked (bound to 'N'/'P') can be used to go to the next/previous marked image - When option -o is given, all marked files get printed | ||||
* | Updated/corrected license header | Bert Münnich | 2013-02-08 | 1 | -13/+13 |
| | |||||
* | Removed old definitions from commands.h | hut | 2013-01-27 | 1 | -3/+0 |
| | |||||
* | New command: i_alternate, go to last image, issue #65 | Bert Münnich | 2012-08-16 | 1 | -0/+1 |
| | |||||
* | Simplified & sped up reloading of all thumbnails | Bert Münnich | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | Added a command to refresh the thumbnails | baskerville | 2012-05-08 | 1 | -0/+1 |
| | |||||
* | Added horizontal and vertical flip commands | baskerville | 2012-05-06 | 1 | -0/+1 |
| | |||||
* | Added it_toggle_bar command; default mapping: XK_b | Bert Münnich | 2012-02-15 | 1 | -0/+1 |
| | |||||
* | Already in the year 2012 | Bert Münnich | 2012-02-15 | 1 | -1/+1 |
| | |||||
* | Added screen-wise scrolling for thumbnail mode | Bert Münnich | 2011-10-27 | 1 | -3/+3 |
| | |||||
* | Added i_reset_slideshow: set slideshow delay to number prefix | Bert Münnich | 2011-10-16 | 1 | -0/+1 |
| | |||||
* | Added i_set_zoom command: set zoom to number prefix | Bert Münnich | 2011-10-16 | 1 | -0/+1 |
| | |||||
* | Added support for number prefix for commands | Bert Münnich | 2011-10-16 | 1 | -1/+1 |
| | |||||
* | Updated contact information | Bert Münnich | 2011-10-14 | 1 | -1/+1 |
| | |||||
* | Added own bool type | Bert | 2011-09-11 | 1 | -28/+30 |
| | |||||
* | Added slideshow support | Bert | 2011-09-10 | 1 | -0/+2 |
| | |||||
* | Made i(t)_toggle_alpha command work in thumbnail mode too | Bert | 2011-09-04 | 1 | -1/+1 |
| | |||||
* | Reformated license header | Bert | 2011-09-03 | 1 | -11/+11 |
| | |||||
* | Added command to toggle gif animations | Bert | 2011-08-19 | 1 | -0/+1 |
| | |||||
* | Added support for multi-frame images | Bert | 2011-08-19 | 1 | -0/+1 |
| | |||||
* | Put event handling back into main.c; events -> commands | Bert | 2011-08-19 | 1 | -0/+63 |
| | |||||
* | Merged commands.h into config.h | Bert | 2011-04-14 | 1 | -13/+0 |
| | |||||
* | Use ctrl for ext cmds, disable them in config.h | Bert | 2011-03-09 | 1 | -5/+5 |
| | |||||
* | Use "/bin/sh -c" for external commands | Bert | 2011-03-03 | 1 | -22/+6 |
| | |||||
* | Slightly refactored commands.h | Bert | 2011-03-01 | 1 | -8/+13 |
| | |||||
* | Support for external commands like mogrify & jpegtran | Bert | 2011-03-01 | 1 | -0/+24 |