Commit graph

434 commits

Author SHA1 Message Date
Harry Jeffery 0ef0625dc2 Write docs with asciidoc 2017-11-29 23:14:22 +00:00
Harry Jeffery 724b201cd8 Clean up old comment 2017-11-29 21:17:01 +00:00
Harry Jeffery 4e3dfb80f3 Make title+overlay configurable
Fixes #110
2017-11-29 21:13:56 +00:00
Harry Jeffery 957a3efd3e Factor out setting of environment variables 2017-11-29 20:32:04 +00:00
Harry Jeffery e2d87223f4 Pull title/overlay text generation into their own functions 2017-11-29 20:31:50 +00:00
Harry Jeffery ad63ab512c Allow config path to be specified with $imv_config 2017-11-29 19:53:02 +00:00
Harry Jeffery 87b6502143 Rename 'remove' command -> 'close' 2017-11-29 19:43:11 +00:00
Harry Jeffery 38ae2f1511 Fix bug when filtering invalid events 2017-11-28 22:50:19 +00:00
Harry Jeffery d9d1a7c603 Add stay_fullscreen_on_focus_loss option
Fixes #103
2017-11-28 22:45:28 +00:00
Harry Jeffery d990a01c21 Fix hardcoded default binds 2017-11-28 22:21:51 +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 fe4d9bcf92 Update loader unit tests 2017-11-26 14:10:33 +00:00
Harry Jeffery f9b1bb2276 The irc channel is dead. Long live the irc channel. 2017-11-26 13:56:56 +00:00
Harry Jeffery 7d310e4897 Use imv_bitmap for bitmaps intead of FIBITMAP 2017-11-26 13:43:18 +00:00
Harry Jeffery 2c51ecf4ee Fix image.h header guard 2017-11-26 13:17:22 +00:00
Harry Jeffery a8eec46b5c Make imv_image interface opaque 2017-11-26 12:13:28 +00:00
Harry Jeffery 3ceb0eac65 Rename imv_texture -> imv_image 2017-11-26 12:07:23 +00:00
Harry Jeffery 92ddfe0bce Don't duplicate license text in all source files
If moving to dual-licensing, this text will be confusing. It's also
a lot of noise.
2017-11-25 12:17:57 +00:00
Harry Jeffery 8bad694c2a Remove unused variable 2017-11-24 18:18:05 +00:00
Harry Jeffery 5f8aa0e5cb Use a background thread to load paths from stdin 2017-11-24 17:55:46 +00:00
Harry Jeffery 764f2d30a4 Make the navigator interface opaque 2017-11-24 17:19:22 +00:00
Harry Jeffery f55ec6749e fixup! Update loader unit test 2017-11-24 17:11:05 +00:00
Harry Jeffery 9e4824b4a5 Make the loader interface opaque 2017-11-24 17:09:18 +00:00
Harry Jeffery b8ba7e7491 Update loader unit test 2017-11-24 17:08:02 +00:00
Harry Jeffery fedd2057a2 loader: Use event to pass image loading error to main thread 2017-11-24 16:55:53 +00:00
Harry Jeffery d5f69f2e83 Sleep for longer when displaying still images 2017-11-24 16:48:32 +00:00
Harry Jeffery bf702c3f43 loader: Use SDL event queue to return images 2017-11-24 09:34:54 +00:00
Harry Jeffery cb4ccd12db Fix clang compile error 2017-11-24 01:44:33 +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
Harry Jeffery 610a2894c0 Fall back on global config, if user has none 2017-11-23 22:18:28 +00:00
Harry Jeffery c643478ad8 Add default_binds option to prevent conflicts 2017-11-23 22:18:28 +00:00
Harry Jeffery 65c9826bab Move remaining actions to bindable commands 2017-11-23 22:18:28 +00:00
Harry Jeffery 599a48746a Move some hardcoded key bindings into new bind system 2017-11-23 21:34:11 +00:00
Harry Jeffery 7f8e941e97 Implement key binding logic
This code is *heavily* based on work I previously did for aerc. Since
I'm the author of that code, and therefore the copyright holder, I'm
able to heavily re-use logic. Of course, because of the differences
between termbox and SDL's event logic and key naming features, there's
some significant differences in how binds are handled, and how keys are
named.
2017-11-23 21:34:11 +00:00
Harry Jeffery 96c320e999 Add list_find function 2017-11-23 21:34:11 +00:00
Harry Jeffery 57eb6a9168 Remove imv_ prefix from struct imv_list
It's just bloat. No value.
2017-11-23 21:34:11 +00:00
Harry Jeffery 9167c61b60 Set $PATH for exec command 2017-11-23 21:34:11 +00:00
Harry Jeffery ab862e33ad Give commands the full arg string too 2017-11-23 21:34:11 +00:00
Harry Jeffery 6d000e5101 Add exec command 2017-11-23 21:34:11 +00:00
Harry Jeffery 4579df9114 Add support for a basic config file 2017-11-23 21:34:11 +00:00
Harry Jeffery c51dff6a4e Workaround bug where events are received incorrectly
For some reason SDL passes events to us that occurred before we
gained focus, and passes them *after* the focus gained event.
Due to behavioural quirks from such events, whenever we gain focus
we have to clear the event queue. It's hacky, but works without
any visible side effects.
2017-08-23 21:16:30 +01:00
Harry Jeffery c3f233e971 Remove year from copyright notices
It was falling out of date, and has no legal bearing to my knowledge.
2017-08-22 22:29:07 +01:00
Harry Jeffery 9587c93fd5 Reimplement -n flag 2017-08-22 21:48:40 +01:00
Harry Jeffery 39509816cf Tweak wording in man page 2017-08-22 21:35:27 +01:00