Commit graph

35 commits

Author SHA1 Message Date
Ivan Oleynikov a1ee2e69a5 Make sure imv and imv-dir have different names in .desktop
It might be different in other file managers, but in Thunar both imv and
imv-dir are currently displayed as "imv" in the "open with" menu. This
makes them indisutinguishable and impossible to choose the one user
wants. This commit ensures that they have different names in the desktop
files.
2023-01-18 21:50:35 +00:00
Ivan Oleynikov 6776568b6c Make imv-dir act like imv when called with multiple arguments
This commit allows user to select a few files and open only them using
imv-dir. When user opens just one file (typically by double-clicking on
it in a file manager), imv-dir will behave like it used to and open
open the whole directory.

I think this behavior is more reasonable doesn't add much complexity to
imv-dir. Now imv-dir conveniently accomodates the three use-cases which
I think must be quite common:

1. If user wants to cycle through all files in current directory, they
   can just double click on one of them.

2. If the user wants to cycle through just a few specific files (say,
   if they have many files in this directory and don't want to see them
   all), they select them and hit Enter.

3. If the user wants to see just one file and doesn't care about cycling
   through them, they just click on one file. The cycling is available,
   but they don't have to use it.

For me, 1 and 2 were the main use-cases and to accomodate them I had to
switch between imv and imv-dir as default image viewers, which is rather
suboptimal. Now both are cheaply accomodated by imv-dir.
2023-01-18 21:39:49 +00:00
Maxim Karasev f58e81288b Rename imv-folder to imv-dir
There is no such thing as 'folder' in Unix. We only have directories
(also sometimes called 'catalogs').
2021-09-29 21:17:05 +00:00
somini ebef68aece Add a contrib-commands option
This includes the commands available in contrib/. It's enabled by
default.

I moved the manpage and desktop file to their regular locations to avoid
complicating the meson file too much. They won't be installed when you
disable the contrib commands.
2021-07-08 23:30:24 +01:00
somini 9557a4b112 Move imv-folder files to contrib
See #261
2021-07-08 23:30:24 +01:00
somini b557c56d44 Tweak imv-folder file sorting
Make sure to version-sort the files. Requires a non-POSIX `sort`, which
should be a mild requirement.

See
d12470375a (commitcomment-44048679)
2021-07-08 23:30:24 +01:00
somini c415c456ea Fix imv-folder usage with sub-folders with images
See https://github.com/eXeC64/imv/pull/225#discussion_r494270357
2021-07-08 23:30:24 +01:00
somini 673e54710a Keep the folder order when using imv-folder
Guaranteed-ish by most shells, see https://unix.stackexchange.com/a/368507.

See #229
2021-07-08 23:30:24 +01:00
somini 38eee61beb Include support for imv-folder
This is a wrapper to open all images in a folder.

Includes:
- Script itself
- Man page
- Desktop file
- Necessary Makefile changes

Fix #223
2021-07-08 23:30:24 +01:00
Hugo Barrera 478310d0c6 List image/heif as a supported mime type
`imv` now supports HEIC, but other applications (e.g.: file managers) cannot determine this, since it's not listed as a supported mime type.

Adding this entry allows such applications to determine that `imv` can handle HEIC files.
2021-04-14 15:32:01 +01:00
Harry Jeffery 49ba898e92 Fix first/last image indexing bug
Fixes #301
2020-12-17 20:18:09 +00:00
Mark Stosberg df51acbf15 Add default keybinding for image rotation
This is the same key binding used by Eye of Gnome for a 90 degree clockwise image rotation for people coming from that image viewer.
2020-12-03 01:19:58 +00:00
Harry Jeffery 18f139c371 Update imv.desktop 2019-12-21 22:30:47 +00:00
Markus Hauck 08fbd3400f Fix typo in config 2019-09-07 01:47:14 +01:00
Rohan Kumar cfb1d26cbe Add app icon to imv.desktop 2019-08-27 21:54:58 +01:00
Sebastian Parborg 3bc2f66dc4 Add upscaling method command
This works the same way as the existing scale command except that it
changes the upscaling method.

Also did some code reduction on the scaling command.
2019-08-25 19:18:16 +01:00
Harry Jeffery 9850d9c6a2 Fix out of date scaling command defaults 2019-08-23 23:02:27 +01:00
Harry Jeffery cf706293db Update default config 2019-08-23 21:08:35 +01:00
Harry Jeffery 96b6dc3aae /usr/bin/sh -> /bin/sh 2019-08-18 22:03:42 +01:00
Harry Jeffery 901243b3f9 Rename imv-wl to imv-wayland 2019-08-18 14:36:57 +01:00
Harry Jeffery aa40dba4c4 Move src/imv.sh to files/imv 2019-08-18 14:20:28 +01:00
Harry Jeffery 0ef0625dc2 Write docs with asciidoc 2017-11-29 23:14:22 +00:00
Harry Jeffery 4e3dfb80f3 Make title+overlay configurable
Fixes #110
2017-11-29 21:13:56 +00:00
Harry Jeffery 87b6502143 Rename 'remove' command -> 'close' 2017-11-29 19:43:11 +00:00
Harry Jeffery d9d1a7c603 Add stay_fullscreen_on_focus_loss option
Fixes #103
2017-11-28 22:45:28 +00:00
Harry Jeffery 299ba91038 Rename cycle_input -> loop_input 2017-11-28 22:12:42 +00:00
Harry Jeffery f47edf8c1b Rename list_at_exit -> list_files_at_exit 2017-11-28 22:09:11 +00:00
Harry Jeffery e9ad72508c Tweak environment variable name for current path 2017-11-28 22:07:18 +00:00
Harry Jeffery f4bf8bc6f6 Allow aliases to be configured 2017-11-28 22:06:55 +00:00
Harry Jeffery 11e52cb5d8 Tweak config option names & capitalisation 2017-11-28 21:59:16 +00:00
Harry Jeffery 86b7b1bf49 Simplify and refactor ini usage
Switch imv to use a more mature ini implementation, and also simplify
the ini syntax in the config files.
2017-11-28 21:39:07 +00:00
Harry Jeffery 3bb94dc1a6 Require <> around all keys in a bind
This is partly for consistency, party to resolve a bug where binding [
in the config file would trick the ini parser into thinking it was
reading a section header, leading to the bind not being applied.
2017-11-23 22:34:25 +00:00
Harry Jeffery e2954b8108 Provide default global config file 2017-11-23 22:18:28 +00:00
Guillaume Brogi 9e858fd698 Change IMV to lowercase imv 2015-11-12 13:24:48 +01:00
Guillaume Brogi ef861fe433 Add a imv.desktop file 2015-11-12 12:33:48 +01:00