Commit graph

10 commits

Author SHA1 Message Date
speedie b59f851fdc Rewrite the way moving around works
It seemed like a good thing at first to combine all the movement stuff
in a single function, however as soon as you want to move multiple lines
at once it becomes very difficult to do that, especially if you aren't
familiar with C.

This commit splits it into 4 separate functions, where the argument
(arg->i) is how many times we move. This means it is now possible to
choose how many lines to move without even editing the function itself,
just through keybinds. This also makes the "fastmove" keybindings
redundant.

Note that calcoffsets() and drawmenu() after that must be called AFTER the for loop added with this commit, otherwise
you can see the selection moving from each line to the next which is
rather ugly.
2023-03-20 18:05:53 +01:00
speedie 13d6ba9065 add keybind for navigating items quickly 2023-03-20 16:33:23 +01:00
speedie cca8ca373c add ability to delete word, some other small changes to previous commit 2023-03-20 15:59:41 +01:00
speedie ba5af9883b add moving left/right in input using arrow keys 2023-03-20 15:59:41 +01:00
speedie 1153d416ab replace almost all /* style comments with // where it makes sense 2023-03-16 16:54:36 +01:00
speedie 71090e7aa3 add keybinds for setting line/columns 2023-03-13 22:45:04 +01:00
speedie b798d12c69 add image gap keybind 2023-03-08 20:13:39 +01:00
speedie 3d9b58b9e7 add keybind for changing image position 2023-03-08 19:41:59 +01:00
speedie 04dd819ffb move all const Arg arg functions to libs/arg.c 2023-03-06 21:03:06 +01:00
speedie e204591cce move some stuff to libs/ in an effort to clean up 2023-02-26 05:13:40 +01:00