Comments (4)
Having given it a bit more thought I don't see how the highlighted parts of the match adds any relevant information to the table when the item anyway has been selected for output. I'll consider including the above.
from dmenu-flexipatch.
Pushed the above, let me know if you experience any issues.
from dmenu-flexipatch.
This seems intentional. It highlights the matching string which in this case (st) covers the entire item.
Should be fairly easy to address though, e.g. by simply not drawing the highlights if the item has been marked for output.
diff --git a/patch/highlight.c b/patch/highlight.c
index b5947b5..664a8b6 100644
--- a/patch/highlight.c
+++ b/patch/highlight.c
@@ -15,6 +15,14 @@ drawhighlights(struct item *item, int x, int y, int maxw)
char *itemtext = item->text;
#endif // EMOJI_HIGHLIGHT_PATCH | TSV_PATCH
+ #if MULTI_SELECTION_PATCH
+ if (issel(item->id))
+ return;
+ #else
+ if (item->out)
+ return;
+ #endif // MULTI_SELECTION_PATCH
+
drw_setscheme(drw, scheme[item == sel ? SchemeSelHighlight : SchemeNormHighlight]);
strcpy(tokens, text);
for (token = strtok(tokens, " "); token; token = strtok(NULL, " ")) {
Applies for the fuzzyhighlight patch as well.
from dmenu-flexipatch.
No issues here. Thanks a ton!
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 5
- 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
- instant patch doesn't work HOT 3
- Can someone add my patch? HOT 1
- fuzzyhighlight: Invalid UTF-8 passed to drw_text
- dmenu PATH = trouble HOT 2
- can't change colors HOT 4
- Tab character not rendering correctly
- multiselect.c missing? HOT 4
- 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.