<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nsxiv/commands.h, branch master</title>
<subtitle>Nsxiv image view custom build
</subtitle>
<id>https://git.krolyxon.com/nsxiv/atom?h=master</id>
<link rel='self' href='https://git.krolyxon.com/nsxiv/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/'/>
<updated>2023-04-14T19:45:39Z</updated>
<entry>
<title>add a pick quit keybind (#432)</title>
<updated>2023-04-14T19:45:39Z</updated>
<author>
<name>eylles</name>
<email>eylles@noreply.codeberg.org</email>
</author>
<published>2023-04-14T19:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=733916ad70b5b2d92e7adfecdf53a74dd4617b74'/>
<id>urn:sha1:733916ad70b5b2d92e7adfecdf53a74dd4617b74</id>
<content type='text'>
The last time[0] this was discussed, no-one was against it but no-one
was confident in it either and so it was added to nsxiv-extra as a
patch.

But now that enough time has passed, it seems like there's a pretty high
demand for something like this because there's plenty of use-cases that
use nsxiv as a "picker" where it's meant to quickly pick a single file.

And so add this as a convenient default key-bind.

[0]: https://codeberg.org/nsxiv/nsxiv-record/pulls/42

Co-authored-by: eylles &lt;ed.ylles1997@gmail.com&gt;
Co-authored-by: NRK &lt;nrk@disroot.org&gt;
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/432
Reviewed-by: NRK &lt;nrk@disroot.org&gt;
Co-authored-by: eylles &lt;eylles@noreply.codeberg.org&gt;
Co-committed-by: eylles &lt;eylles@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>add brightness and contrast (#396)</title>
<updated>2022-12-22T11:21:40Z</updated>
<author>
<name>Berke Kocaoğlu</name>
<email>kberke@metu.edu.tr</email>
</author>
<published>2022-12-22T11:21:40Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=95bc9b463b87236d30d86626e1052e6979d6510f'/>
<id>urn:sha1:95bc9b463b87236d30d86626e1052e6979d6510f</id>
<content type='text'>
* Imlib2 supports modifying gamma, brightness and contrast directly
  while sxiv only supports gamma. Makes sense to extend it to brightness
  and contrast as well.

* Since color corrections need to be aware of each other, they have been
  refactored into one centralized function.

* This also makes the code more hackable as it makes it easier to add
  more color correction functions without them interfering with each
  other.

Co-authored-by: 0ion9 &lt;finticemo@gmail.com&gt;
Co-authored-by: NRK &lt;nrk@disroot.org&gt;
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/396
Reviewed-by: NRK &lt;nrk@disroot.org&gt;
Reviewed-by: TAAPArthur &lt;taaparthur@noreply.codeberg.org&gt;
Co-authored-by: Berke Kocaoğlu &lt;kberke@metu.edu.tr&gt;
Co-committed-by: Berke Kocaoğlu &lt;kberke@metu.edu.tr&gt;
</content>
</entry>
<entry>
<title>fix: don't use reserved identifiers</title>
<updated>2022-06-25T06:27:01Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-15T07:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b28449e10c92c304434645872199d8f8cb2448b4'/>
<id>urn:sha1:b28449e10c92c304434645872199d8f8cb2448b4</id>
<content type='text'>
identifiers beginning with an underscore is reserved by the C standard.
</content>
</entry>
<entry>
<title>Declare every extern function/variable in `nsxiv.h` (#268)</title>
<updated>2022-05-03T15:36:57Z</updated>
<author>
<name>N-R-K</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-05-03T15:36:57Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9'/>
<id>urn:sha1:3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9</id>
<content type='text'>
with a couple exceptions as they cause too many -Wshadow warnings.

also moves the `extcmd_t` typedef on top for cosmetic purposes.

also enable `-Wmissing-prototypes` in the ci
</content>
</entry>
<entry>
<title>Add keybind to scroll to image center (#203)</title>
<updated>2022-01-15T22:51:31Z</updated>
<author>
<name>Nick Hanley</name>
<email>nicholasjhanley@gmail.com</email>
</author>
<published>2022-01-15T22:51:31Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57'/>
<id>urn:sha1:2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>make thumbnail bindings configureable via config.h (#167)</title>
<updated>2022-01-10T16:52:06Z</updated>
<author>
<name>N-R-K</name>
<email>79544946+N-R-K@users.noreply.github.com</email>
</author>
<published>2022-01-10T16:52:06Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=7a75c42b37b08f44c72f9a7c98eb6076967470fb'/>
<id>urn:sha1:7a75c42b37b08f44c72f9a7c98eb6076967470fb</id>
<content type='text'>
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</content>
</entry>
<entry>
<title>fix -Wstrict-prototype warning</title>
<updated>2022-01-06T17:53:02Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2021-12-25T01:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b42e3ef3d4f8068a9bf694c6a8c90161e281f0d7'/>
<id>urn:sha1:b42e3ef3d4f8068a9bf694c6a8c90161e281f0d7</id>
<content type='text'>
looks like i missed one in ff88908
</content>
</entry>
<entry>
<title>specify func argument and related cleanup (#183)</title>
<updated>2021-12-19T17:05:35Z</updated>
<author>
<name>N-R-K</name>
<email>79544946+N-R-K@users.noreply.github.com</email>
</author>
<published>2021-12-19T17:05:35Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=ff88908531a9d20667c6d08f01d7d887ebb60fe8'/>
<id>urn:sha1:ff88908531a9d20667c6d08f01d7d887ebb60fe8</id>
<content type='text'>
* 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 &lt;berke.kocaoglu@metu.edu.tr&gt;</content>
</entry>
<entry>
<title>Add ability to bind arbitrary functions.</title>
<updated>2021-10-13T00:05:00Z</updated>
<author>
<name>Arthur Williams</name>
<email>taaparthur@gmail.com</email>
</author>
<published>2021-09-18T19:27:12Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=12efa0e3b429675047cb2900d49e1f38afeb650b'/>
<id>urn:sha1:12efa0e3b429675047cb2900d49e1f38afeb650b</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>One header file for type definitions and function declarations</title>
<updated>2017-10-16T19:10:35Z</updated>
<author>
<name>Bert Münnich</name>
<email>ber.t@posteo.de</email>
</author>
<published>2017-10-16T19:10:35Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=148026007cae3b97d39d2cfee7562c139eb486b2'/>
<id>urn:sha1:148026007cae3b97d39d2cfee7562c139eb486b2</id>
<content type='text'>
</content>
</entry>
</feed>
