Commit graph

69 commits

Author SHA1 Message Date
speedie fa82afad48 add function for clear that also puts you in insert mode 2023-03-26 20:34:41 +02:00
speedie eebad002cd fix issues with movement 2023-03-24 14:38:28 +01:00
speedie 1c6c041f5e fixed: tab completion with sgr sequences 2023-03-24 03:48:56 +01:00
speedie b8e7fd27db some changes to the general codebase. also add spmenu:about which
displays information about the compiled spmenu build
2023-03-24 03:14:24 +01:00
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 21d75d806e Add pango toggle, it is now optional for those of you who want a minimal
spmenu instance.
2023-03-08 21:12:37 +01:00
speedie 7ed80af25e these functions shouldn't do anything if hideimage 2023-03-08 20:18:03 +01:00
speedie b798d12c69 add image gap keybind 2023-03-08 20:13:39 +01:00
speedie 4e193772a0 some minor changes 2023-03-08 19:46:33 +01:00
speedie 3d9b58b9e7 add keybind for changing image position 2023-03-08 19:41:59 +01:00
speedie 91cc7782f7 greatly speed up image redrawing/resizing by removing unnecessary calls
to drawimage() and cleanupimage()

we don't need to call cleanupimage() as it is already called in
cleanup()

we don't need to call drawimage() because X11 events should handle that
for us anyway
2023-03-08 18:58:52 +01:00
speedie 6a83ac707e move image size stuff to a separate function we can call on demand 2023-03-08 17:50:58 +01:00
speedie 3e0bf9cd83 cleanup all gcc warnings 2023-03-06 21:19:12 +01:00
speedie 04dd819ffb move all const Arg arg functions to libs/arg.c 2023-03-06 21:03:06 +01:00