summaryrefslogtreecommitdiffstats
path: root/main.c
AgeCommit message (Collapse)Author
2021-10-07add statusbar message upon key-hander activation (#98)N-R-K
Currently when running the key-handler the statusbar shows a "Running key-handler..." message, but there's no indication of the prefix key being pressed. There's a slight functional benefit of this patch in the sense that users can visually tell if the key-handler is listening on input or if the key-handler has been aborted or not.
2021-09-29make ten_ms local to run (#101)N-R-K
ten_ms needed to be a global but after the following commit 3724d3fc17dc6135a05608cab5bdf00c6978282d this no longer holds true. it can simply be local to run, as it's not used anywhere else.
2021-09-24make keyhandler abort key configurable via config.hNRK
2021-09-24fix: unable to bind anything to XK_EscapeNRK
2021-09-20Allow any set of modifiers to be used in keybindingsArthur Williams
Previous the code only allowed ShiftMask,ControlMask or Mod1Mask to be used in keybindings and the presence of any others modifiers would be ignored. Most problems generally allow certain modifiers to be be ignored but not most and certainly don't allow Super-A to be treated like A. Now users can use any modifiers they want in keybindings and can also ignore any modifiers they want. By default only ModMask2 (commonly numlock is ignored) Co-authored-by: N-R-K <79544946+N-R-K@users.noreply.github.com>
2021-09-16Rename, Update Docs and Prepare for Release (#9)Berke Kocaoğlu
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>
2021-09-16Exit when window is destroyedArthur Williams
If the user closed our window, the program won't automatically be die. It may look dead as there would be no graphical indication that it was running, but it still would be using/wasting the same resources. Now the program will abruptly exit when its window is killed.
2021-09-16set title based on prefix and suffix (#23)qsmodo
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>
2020-01-16Fix indentationBert Münnich
2019-07-16Do not keep track of fullscreen stateBert Münnich
There is no more need for this after the removal of the special color handling for fullscreen mode in commit 2886876.
2018-12-29Fix file list indexes when deleting last imageBert Münnich
Fixes issue #331
2018-10-15Set window title only once at startupBert Münnich
Putting image info in the title predates the info bar; it no longer seems necessary. Fixes issue #318.
2018-07-30Don't skip dot files when cleaning cacheKacper Gutowski
2018-06-09Set global markidx whenever a single img is (un)markedBert Münnich
This also sets *markidx* when using the right mouse button in thumbnail mode.
2018-06-09(Un)mark thumbnails while holding Button3 downBert Münnich
2018-06-09(Un)mark single image through generic functionBert Münnich
2018-06-09Rename variable toggledidx to markidxBert Münnich
2018-06-09Fix cg_mark_range after removing images from file listBert Münnich
2018-06-09Remove unnecessary special cases in cg_mark_rangeBert Münnich
2018-06-09Add mark range functionDaniel Lublin
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.
2018-02-18Revise waiting for child processesBert Münnich
2018-02-18Close image-info explicitlyBert Münnich
2018-02-18Skip imlib cache when reloading due to inotify eventBert Münnich
2018-01-09RefactoringBert Münnich
2018-01-09Fix a potential uninitialized variableHyleus
2017-12-07Separate bar fields only by spacesBert Münnich
2017-12-07Remove obsolete files[].baseBert Münnich
2017-12-07Left bar shows file name as given by userBert Münnich
2017-12-07Try to match a fallback font if neededSquibby
Fixes #276 Instead of rendering the entire filename at once, Xft will let us do it character by character. This will allow sxiv to query fontconfig for a font that can provide any missing codepoints, if needed. A known issue of this patch is that the "..." dots rendering will not work properly for very long multibyte filenames. That is because we cannot easily predict the final width of the rendered filename before drawing it. I couldn't figure out a clean way to deal with this, so I ended up just truncating the offending filenames.
2017-10-26Fix navigating from last to previous image over invalid filesBert Münnich
2017-10-24Set LC_COLLATE for -r file list sortingBert Münnich
Fixes issue #293.
2017-10-16One header file for type definitions and function declarationsBert Münnich
2017-10-06Improve mouse supportBert Münnich
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.
2017-10-05Simplify cursor reset in image modeBert Münnich
No need to give cursor name. reset_cursor() is now the only place to decide what cursor to fall back to.
2017-10-04Mouse drag translates pointer position to image areaBert Münnich
This makes mouse panning more direct and faster.
2017-05-17Detect all file overwrites in autoreload_inotifyBert Münnich
mv(1) inside the same filesystem was not detected. Supporting this case made it necessary to always watch the directory. Turns out the logic and state keeping between arl_setup() and arl_handle() is easier, when using different watch descriptors for the file and the directory and not using a oneshot descriptor for the file. Requiring an absolute canonical path for arl_setup() simplifies dir and base name splitting. No need for dirname(3) and basename(3) anymore.
2017-05-17Revised autoreload interfaceBert Münnich
Make the header only contain the public interface and nothing from the implementation. All functions get a handle to their self object, like the img_ and tns_ and win_ functions. All necessary data (file path) is also passed as an argument, so that no extern redeclarations are needed. Make arl_setup_dir() private, it's not called outside the module. Make arl_handle() return true if the file has changed, so that the reloading of the file can be done by the caller.
2017-05-17Add autoreload support by inotify (and dummy backend nop)Max Voit
2017-05-17Properly quit when window gets closed; fixes issue #27Bert Münnich
2017-02-15Fix typoJakub Wilk
2017-01-07Pass given file names to key-handler instead of real pathsBert Münnich
Misbehaving command lines in the key-handler that rewrite the given files and thus replace symbolic links instead of their targets shall call realpath(1). Fixes issue #205 and reverts commit 92e3b578.
2016-12-01Merge djhejna/floatdelayBert Münnich
2016-11-30Ignore button and key events while key-handler is runningBert Münnich
Related to issue #253, which originally asked for a non-blocking key-handler.
2016-11-28Support for DELAY as a floating point number including less than 1Don Hejna
second while maintaining backward compatibiitiy with integer arguments.
2016-09-28Allow opening directories non-recursivelyParide Legovini
2016-08-06Use Xft for font loading and text drawingBert Münnich
2016-08-06Provide image width and height to image-info script; fixes issue #159Bert Münnich
2015-10-28Revised error handlingBert Münnich
- 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)
2015-10-28Prefix safe allocation functions with 'e' instead of 's_'Bert Münnich
2015-10-28Removed unnecessary buffer size constantsBert Münnich