Comments (4)
Thanks for bringing this to my attention, it must be a patch file which I have somehow forgotten to add to git. I'll get it added first thing in the morning.
In the meantime here is the content of that file.
static int
issel(size_t id)
{
for (int i = 0;i < selidsize;i++)
if (selid[i] == id)
return 1;
return 0;
}
static void
printsel(unsigned int state)
{
for (int i = 0;i < selidsize;i++)
if (selid[i] != -1 && (!sel || sel->id != selid[i]))
puts(items[selid[i]].text);
if (sel && !(state & ShiftMask))
puts(sel->text);
else
puts(text);
}
static void
selsel()
{
if (!sel)
return;
if (issel(sel->id)) {
for (int i = 0; i < selidsize; i++)
if (selid[i] == sel->id)
selid[i] = -1;
} else {
for (int i = 0; i < selidsize; i++)
if (selid[i] == -1) {
selid[i] = sel->id;
return;
}
selidsize++;
selid = realloc(selid, (selidsize + 1) * sizeof(int));
selid[selidsize - 1] = sel->id;
}
}
from dmenu-flexipatch.
Nice, thank you. Do you happen to know how to change the color of the multiselect selection? It doesn't obey the select colors I set in Xresources and Couldn't find anything in the files... I'm not a programmer, just a hobbyist... =)
That's not the actual Xresources. I picked the wrong one, that's just the template for "wpgtk" but the colors work as one can tell so it's nothing wrong with it.
from dmenu-flexipatch.
Hi @der-Zonk,
I added that missing file now.
I had a look and it is the SchemeOut
colors that are used when selecting multiple items (also in a bare dmenu). The multi select patch just avoids outputting the item as soon as you do ctrl+enter
and instead waits until you just press enter
and then prints them all out at the end - that way you can unselect options as well.
To set these colors via Xresources you need to set the outforeground
and outbackground
resources.
dmenu.outforeground: {color#}
dmenu.outbackground: {color#}
Thanks,
-Stein
from dmenu-flexipatch.
I'm a dummy. Thanks a lot. =)
from dmenu-flexipatch.
Related Issues (20)
- Conflict between printindex patch and multiselection patch HOT 1
- Delay for certain dmenu scripts to appear HOT 20
- Fuzzy Highlighting has small graphical glitches HOT 7
- How do I make the font bold? HOT 6
- border patch smushes the font HOT 9
- Is it possible to have dmenu return other exit codes on pressing `Alt-Enter` or other combination? HOT 1
- XResources Patch - munmap_chunck(): Invalid Pointer HOT 3
- Highlight patch messes with multi-selection colouring HOT 4
- instant patch doesn't work HOT 4
- Can someone add my patch? HOT 1
- fuzzyhighlight: Invalid UTF-8 passed to drw_text HOT 7
- dmenu PATH = trouble HOT 2
- can't change colors HOT 4
- Tab character not rendering correctly
- Looks like ALPHA_PATCH's `-o` option does nothing HOT 5
- Prefix completion conflicts with fuzzy match HOT 15
- Patch manpage as well HOT 2
- dynamic options gives error HOT 6
- Can I change the sb color when there is nothing piped into dmenu? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmenu-flexipatch.