aboutsummaryrefslogtreecommitdiff
path: root/options.c
Commit message (Collapse)AuthorAgeFilesLines
* nout patchHEADmastersinanmohd2022-07-151-2/+9
|
* sort and group includesNRK2022-06-281-1/+1
| | | | | | | | | | | | | * includes are sorted alphabetically * their grouping and layout is the following: - nsxiv.h will be the first include - followed by any internal headers (e.g "commands.h" "config.h") - followed by system headers (<stdlib.h> etc) - followed by third party headers (X.h libwebp etc) * also add `llvm-include-order` check to clang-tidy so that it can catch unsorted includes during CI.
* code-style: cleanup includesNRK2022-06-281-0/+1
| | | | | | | | * rm unused include <sys/types.h> * move <sys/time.h> to main.c, it's the only file that needs it. * move TV_* macros to main.c * let *.c files explicitly include what they need instead of including them at nsxiv.h
* Release version 30NRK2022-06-151-1/+1
| | | | | Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
* use win-title script for customizing window title (#213)N-R-K2022-02-231-13/+15
| | | | | this removes the cli flag `-T` as well as related config.h options. Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
* update copyright yearNRK2022-02-131-1/+1
|
* mark functions and vars as static (#146)N-R-K2021-11-201-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | the goal here to mark functions and variables not used outside the translation unit as static. main reason for this is cleanliness. however as a side-effect this can help compilers optimize better as it now has guarantee that a certain function won't be called outside of that translation unit. one other side-effect of this is that accessing these vars/function from config.h is now different. if one wants to access a static var/func from different translation unit in config.h, he would have to create a wrapper function under the right ifdef. for static functions one would also need to forward declare it. here's a dummy example of accessing the function `run_key_handler` from config.h under _MAPPINGS_CONFIG ``` static void run_key_handler(const char *, unsigned); bool send_with_ctrl(arg_t key) { run_key_handler(XKeysymToString(key), ControlMask); return false; } ```
* -0 sends NULL separated file-list to key-handlerNRK2021-10-291-3/+2
| | | | | | | | with this change `-0` is turned into a more generic switch which can be used to send NULL-separated file-list to the key-handler as well. this also means `-0` no longer implicitly enables `-o` Closes: https://github.com/nsxiv/nsxiv/issues/140
* code-style: general cleanups (#137)N-R-K2021-10-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tns_clean_cache: remove unused function arg * remove malloc casting * improve consistency use sizeof(T) at the end * avoid comparing integers of different signedness * use Window type for embed and parent * remove unnecessary comparisons * remove cpp style comments * improve consistency: remove comma from the end of enumerator list * Removed useless _IMAGE_CONFIG defines * consistency: use the same order as snprintf * Resolve c89 warnings Co-authored-by: uidops <uidops@protonmail.com> Co-authored-by: Arthur Williams <taaparthur@gmail.com>
* update copyright notice (#139)eylles2021-10-281-1/+2
|
* switch -0 to bottom in options.cNRK2021-09-211-6/+6
|
* add 0 to print_usageNRK2021-09-211-1/+1
|
* add -0 for outputting null-terminated list (#68)N-R-K2021-09-201-1/+6
| | | | | | | | | | | | * add -0 for outputting null-terminated list this doesn't add much, if any, additional complexity to the codebase and can be quite handy for scripting purposes. Closes: https://github.com/nsxiv/nsxiv/issues/67 * Fix typo Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
* Rename, Update Docs and Prepare for Release (#9)Berke Kocaoğlu2021-09-161-7/+7
| | | | | | | Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Arthur Williams <taaparthur@gmail.com> Co-authored-by: eylles <ed.ylles1997@gmail.com>
* set title based on prefix and suffix (#23)qsmodo2021-09-161-3/+16
| | | | | | Co-authored-by: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Co-authored-by: NRK <nrk@disroot.org> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
* Implement fill scale modeBerke Kocaoğlu2021-09-161-1/+1
|
* New version schemeBert Münnich2018-06-091-1/+2
| | | | | | VERSION string between releases is last release suffixed with '+'. Additionally, use output of git-describe instead of VERSION string, if it is not empty.
* One header file for type definitions and function declarationsBert Münnich2017-10-161-9/+6
|
* Add -p flag to disable writing of cache and temporary filesAntti Korpi2017-09-081-2/+6
| | | | Closes #285.
* Merge djhejna/floatdelayBert Münnich2016-12-011-1/+1
|\
| * Support for DELAY as a floating point number including less than 1Don Hejna2016-11-271-4/+5
| | | | | | | | | | second while maintaining backward compatibiitiy with integer arguments.
* | Merge dwminer/framerateBert Münnich2016-11-281-3/+11
|\ \ | |/ |/|
| * Add -A option to force framerate on animated imagesdwminer2016-11-271-2/+10
|/
* Use -e for X window embeddingBert Münnich2016-10-301-9/+9
|
* added support for XEMBED into other windows (ie tabbed) with -wshuall2016-10-281-2/+9
|
* Revised error handlingBert Münnich2015-10-281-20/+13
| | | | | | | - Functions warn() and die() replaced by GNU-like error(3) function - Register cleanup() with atexit(3) - Functions called by cleanup() are marked with CLEANUP and are not allowed to call exit(3)
* Removed feature test macro definitions from source filesBert Münnich2015-10-281-3/+2
|
* Revised handling of GIF animationsBert Münnich2014-07-251-2/+6
| | | | | | - New option `-a`: Play animations at startup - Ctrl-Space toggles animation for all GIF files - Infinite loop for all animations
* Removed command line option -FBert Münnich2014-02-051-6/+2
|
* Set scale mode at startup via argument to -s optionBert Münnich2014-02-041-5/+11
|
* Revised scale mode and zoom level handlingBert Münnich2014-02-041-6/+3
| | | | | | | - Scale mode is not reset to default value upon image loading anymore - New default key binding to change mode to scale-down - Removed scale mode setting from config.h - Removed -d command line option, as this is now the default at startup
* Fixed -z option argument parsing; fixes issue #127Bert Münnich2014-01-151-1/+1
|
* Slideshow mode is back, in a simplified versionBert Münnich2014-01-041-17/+24
|
* Refactored remote changesBert Münnich2013-11-141-6/+8
|
* Add support for changing the gamma valueAndrás Mohari2013-11-131-3/+12
|
* Added options for anti-alias & alpha layer coloring to config.def.hBert Münnich2013-08-221-6/+2
| | | | Also removed now obsolete -p command line option; fixes issue #98
* New options: -[io], read/write files from/to stdin/outBert Münnich2013-03-191-4/+16
| | | | Fixes issue #84
* Refactored function definitions to use dangling braceBert Münnich2013-02-081-3/+6
|
* Updated/corrected license headerBert Münnich2013-02-081-13/+13
|
* New option: -N, set X window resource nameBert Münnich2012-10-291-2/+6
|
* Added option -b: disable barBert Münnich2012-02-161-2/+6
|
* Already in the year 2012Bert Münnich2012-02-151-1/+1
|
* Removed exif support; made gif support non-optionalBert Münnich2012-02-111-13/+0
|
* Updated contact informationBert Münnich2011-10-141-1/+1
|
* Strictly adhere to ANSI-C standardBert Münnich2011-10-131-1/+1
|
* Use void for empty argument listsBert Münnich2011-10-121-2/+2
|
* Made all conditionals more preciseBert Münnich2011-09-291-2/+2
|
* Transformed function macros in util.h to inline functionsBert Münnich2011-09-291-1/+1
|
* Added STREQ macroBert Münnich2011-09-261-1/+1
|
* make use of EXIT_ macrosrck2011-09-261-5/+5
|