Commit graph

36 commits

Author SHA1 Message Date
Jacob a3a860fe26 Add togglepretext func 2023-08-09 20:49:23 +02:00
Jacob d3798b90ff Add toggleimgtype 2023-08-09 05:48:32 +02:00
speedie 0f69bd63b1 Rename selecthover to outputhover and add selecthover function. 2023-07-25 00:27:39 +02:00
speedie 0ec1c73053 Improve selecthover() function, add markhover() function 2023-07-25 00:19:58 +02:00
Jacob ed6b1ff309 Add togglefuzzy function 2023-07-22 19:13:02 +02:00
Jacob 4e716ee80c Remove ClickSelItem
This commit removes ClickSelItem. It doesn't make very much sense to
keep a separate click for the click and output functionality.
2023-07-19 17:50:50 +02:00
speedie 0988babd15 Add setlineheight function 2023-07-16 18:59:08 +02:00
speedie f2776a39aa Declare functions inside arg.h 2023-07-16 18:49:20 +02:00
speedie 890457729c Make regex matching a separate mode inside insert mode 2023-07-06 22:02:53 +02:00
Jacob 3f456f3a37 Feature: Add the ability to take "screenshots" of spmenu.
It doesn't actually capture your screen, but rather saves the Cairo
surface to an image. The path to the image and some other options
can also be configured in the config file.

By default, Print Screen can be pressed in Normal mode with no modifier
to take a screenshot. The default location is the user's home directory,
and the file has a date attached to it. Of course, this can be changed
as well.
2023-06-30 02:44:29 +02:00
speedie dfc4fe038c Remove fullscreen functionality
The fullscreen functionality is kind of cool, but adds a lot of code and
as commit history has shown, plenty of bugs and extra required testing.

I may reimplement this later in a less bad manner. Note that the
fullscreen behavior can be achieved by simply increasing image size to
the max. spmenu will let you do that.

Fixes issue #9
2023-06-24 04:53:44 +02:00
speedie 5745b52bc9 Add work in progress support for images on Wayland
This commit also adds MASSIVE speed improvements to image drawing, due
to code cleanup. There are still a *few* issues to resolve, one is
X11 related, and one is caused by alpha/blending.
2023-06-08 19:40:30 +02:00
speedie 0258974bf0 code cleanup, add moveitem function 2023-05-22 16:35:57 +02:00
speedie 12b69656a7 add support for marking items (ie. multi selection) 2023-05-16 18:54:26 +02:00
speedie 8c9d33d01f add LICENSE notice to all code 2023-05-14 00:21:16 +02:00
speedie 15141c230d add the ability to full screen an image + code cleanup
images are drawn quite slowly, something needs to be done about that
soon
2023-05-14 00:10:24 +02:00
speedie 5efe236380 indent lots of code using vim gg=G 2023-05-08 23:00:45 +02:00
speedie c1d36670fa replace a lot of suckless coding decisions with my own 2023-05-06 14:29:45 +02:00
speedie 5b2cbc0c7e fix keybind for setprofile, fix mac support 2023-04-26 10:01:11 +02:00
speedie 9c3bd4caab basic keybind config file 2023-04-25 09:56:11 +02:00
speedie 46f87587ab rewrite the way the profile script running works 2023-04-23 20:08:34 +02:00
speedie c0611034aa add a keybind for toggling highlighting 2023-04-21 12:10:02 +02:00
speedie eca13f2896 fix lots of issues/bad code 2023-04-21 09:49:38 +02:00
speedie 6ac2afb240 add plenty of comments to spmenu 2023-03-31 12:42:42 +02:00
speedie 0607f9f607 add support for profiles 2023-03-29 23:45:54 +02:00
speedie fa82afad48 add function for clear that also puts you in insert mode 2023-03-26 20:34:41 +02: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 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