Commit graph

32 commits

Author SHA1 Message Date
speedie 909828f49c allow switching profile in any mode 2023-04-02 00:54:06 +02:00
speedie 0607f9f607 add support for profiles 2023-03-29 23:45:54 +02:00
speedie 78138025d2 some minor changes, new bind 2023-03-28 19:49:05 +02:00
speedie fa82afad48 add function for clear that also puts you in insert mode 2023-03-26 20:34:41 +02:00
speedie 316000a4fc some cleanup 2023-03-24 03:20:12 +01:00
speedie 606d3e0773 remove duplicate keybindings 2023-03-24 03:17:53 +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 7242be1738 change keybind for viewing history to prevent some issues 2023-03-19 17:16:51 +01:00
speedie 71090e7aa3 add keybinds for setting line/columns 2023-03-13 22:45:04 +01:00
speedie 5126beae4a some small fixes 2023-03-09 15:02:40 +01:00
speedie a0659d2fd7 oops seems like i changed the toggleimage keybind by accident 2023-03-08 20:16:11 +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 5bdcc45829 move these keybinds to any mode rather than just insert mode 2023-03-08 13:59:02 +01:00
speedie 7b5f582902 change keybind for resetting image size 2023-03-06 21:20:14 +01:00
speedie ce214e0e1a merge the two flipimage functions into a single flipimg function with arguments 2023-03-06 19:23:37 +01:00
speedie 0b0cfa5d36 add support for keybinds that work in any mode 2023-03-06 19:13:38 +01:00
speedie 7e98a40c02 add more comments to keybinds.h 2023-03-06 17:00:36 +01:00
speedie 0449ccb797 change the way keybinds work 2023-03-06 14:15:01 +01:00
speedie cc231b8df8 add support for flipping and rotating images 2023-03-04 14:37:14 +01:00
speedie 3d4fc5247a don't allow scaling too far up/down, also add wip default image size keybind 2023-03-03 21:18:25 +01:00
speedie fbfdfe2583 Fix toggle keybind 2023-03-02 16:22:59 +01:00
speedie 629bc3d685 forgot to add everything 2023-03-02 16:06:11 +01:00
speedie 2b08cf6a0a declare functions 2023-03-02 14:05:07 +01:00
speedie 8c9de3be16 add keybind for increasing/decreasing image size 2023-03-01 00:05:22 +01:00
speedie a009d77d90 Add autocomplete key to insert mode 2023-02-26 16:12:11 +01:00
speedie dc012dc704 rename keys array 2023-02-26 06:18:56 +01:00
speedie e88b499d7c add vim like modes 2023-02-25 17:44:52 +01:00
speedie 8f8002716b speedwm-like keybind array replacing the previously hardcoded list of
keybinds.
2023-01-21 22:12:58 +01:00