kdotool icon indicating copy to clipboard operation
kdotool copied to clipboard

Add case sensitive search option

Open retracile opened this issue 1 year ago • 2 comments

First, thank you for creating this tool. Upgrading past Fedora 39 meant Wayland, and the loss of xdotool was impactful for me.

A feature request would be a --case-sensitive option for use with search --name <regex>. Web browsers put a lot of text in the titles, and case sensitive searches would make it easier to avoid false-positives for some of my searches.

To give a bit more context, I want to be able to raise a set of windows or to raise a browser window which may be on any of several different tabs, so I'm using kdotool from a wmfg script (window manager foreground) like this:

#!/bin/bash
for term in "$@"; do
    kdotool search --name "$term"
done | sort -u | xargs -n 1 kdotool windowactivate

In the mean time, I'll try to refine my regexes to key off things other than case.

retracile avatar Nov 11 '24 19:11 retracile

I'm in the same boat, I'm writing a general script where you input commands which then gets minimized via a loop on launch and you never know about window title capitalization which could lead to quite a long loop (although I have set up a timeout feature).

RedSnt avatar Mar 21 '25 09:03 RedSnt

Hi, I am working on a fork of this tool and implemented this feature... https://github.com/tvidal-net/kdotool/releases/tag/v0.2.2-SNAPSHOT

tvidal-net avatar Nov 12 '25 11:11 tvidal-net