Jacob
d3798b90ff
Add toggleimgtype
2023-08-09 05:48:32 +02:00
Jacob
3bc8d85937
Don't define USE*
2023-08-07 06:37:38 +02:00
Jacob
185c95a526
Replace Vim like binds with normal dmenu like binds by default.
2023-07-29 04:24:02 +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
speedie
dd44bc56ab
Add clipboard support for Wayland
...
This commit adds clipboard support for Wayland. The implementation is
quite ugly though, as it requires the use of an external program and
shell (wl-clipboard). It doesn't add a hard dependency though, as if
the user doesn't want pasting the dependency is not required.
2023-07-22 04:04:23 +02:00
speedie
ea48ea69ed
Fix issue #14 by replacing bad code.
...
I don't know what I was thinking to be honest.
2023-07-22 02:02:03 +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
21f9aa09e5
Add documentation for functions
2023-07-16 18:44:35 +02:00
speedie
0627c2fc1c
Replace more variable names to more descriptive ones
2023-07-16 03:16:45 +02:00
speedie
7b7c1a56f4
Add some more comments
2023-07-16 02:57:38 +02:00
Jacob
1c491bba9c
Move up/down on left/right when !lines
2023-07-14 03:32:06 +02:00
speedie
890457729c
Make regex matching a separate mode inside insert mode
2023-07-06 22:02:53 +02:00
speedie
9201b3ba18
Fix tab completion when no matches
2023-07-05 02:02:35 +02:00
speedie
fbfbc44dec
Fix some issues with the image gaps, fix image gaps size, remove some
...
more keybinds
2023-07-05 00:39:40 +02:00
speedie
ad96d3fbb3
Oops, fix wacky highlighting, should be working perfectly now
2023-07-04 23:32:51 +02:00
speedie
7492eed0cf
Simplify and fix SGR sequence removal
2023-07-04 23:10:06 +02:00
speedie
55a3b95e12
Clear input when resizing lines
2023-07-03 23:40:30 +02:00
speedie
247d5e768b
Fix an oversight in the set_mode() function
2023-07-03 22:19:19 +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
bd49d876cd
Move to the first item when setting lines
...
This fixes an issue where you can resize beyond the number of items
2023-06-24 17:01:43 +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
748db7eed1
simplify full screen
2023-06-24 04:43:05 +02:00
speedie
0a59088313
Fix keybind conflict, replace imageg, imagew and imageh in favor of
...
using the img struct
2023-06-24 04:20:51 +02:00
speedie
6328edc5cd
Use global structs
2023-06-23 03:38:21 +02:00
speedie
c1058dfb00
add option to enable/disable setting lines/columns using keybinds
2023-06-19 01:46:05 +02:00
speedie
4d505459b1
significantly clean up the image size functions
2023-06-12 00:15:29 +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
a9ee831159
add X11 toggle, so now Xlib, Xinerama and Xrender aren't dependencies if
...
you only use Wayland
2023-06-05 17:16:26 +02:00
speedie
692e3abc68
Add experimental native Wayland support
2023-06-02 18:37:51 +02:00
speedie
7ca66d674f
last few commits again
2023-05-24 22:01:35 +02:00
speedie
0258974bf0
code cleanup, add moveitem function
2023-05-22 16:35:57 +02:00
speedie
620cb0ca63
add option to not allow selecting multiple items to spmenu itself
2023-05-19 02:13:13 +02:00
speedie
ea3e7ed458
remove unnecessary match() calls in setlines() and setcolumns()
2023-05-16 21:04:32 +02:00
speedie
5aefbf249a
fix some bugs, add multisel for spmenu_run
2023-05-16 20:03:52 +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
60f588f003
Remove some commented code
2023-05-13 17:37:37 +02:00
speedie
671dbffa1b
fix bug where the caret may be moved if a different item is selected
...
this code made sense back when spmenu couldn't define keybinds manually,
as then moving between items and moving the caret was one single case.
2023-05-09 17:55:10 +02:00
speedie
5efe236380
indent lots of code using vim gg=G
2023-05-08 23:00:45 +02:00
speedie
6673afc8b7
disable insert mode completely when !type
2023-05-07 15:38:51 +02:00
speedie
5ff1abc849
add ability to print item number rather than the item itself
2023-05-06 23:29:41 +02:00
speedie
c1d36670fa
replace a lot of suckless coding decisions with my own
2023-05-06 14:29:45 +02:00
speedie
be13a65ff5
some improvements, dmenu.conf is now theme.conf compatible
2023-05-01 18:01:47 +02:00
speedie
c3b9687e21
add comments to config file for keybinds
2023-04-29 22:53:00 +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