https://git.dlma.com/dotfiles.git/tree/891e93c784a4c594e88ba30878036cfdce8cc680Recent commits to dotfiles.git (891e93c784a4c594e88ba30878036cfdce8cc680)2025-11-29T17:35:09-08:00tag:gitlist.org,2012:commit/891e93c784a4c594e88ba30878036cfdce8cc680Add tip for macOS users: remove the (\>|$) from end2025-11-29T17:35:09-08:00dblumedavid.blume@gmail.com
<pre>For some reason this regex doesn't work on my MacBook Air.
I have the same bash and tmux version on a Linux device and it works.
</pre>
tag:gitlist.org,2012:commit/459c4cc115c5c49db6167a7a07d4c946a2aab58dtmux filename matching: don't match prefix spaces2025-11-28T12:36:59-08:00dblumedavid.blume@gmail.com
<pre>Turns out I didn't need to match spaces or specify '/<' word
start boundaries. This slightly shorter regex passes all my
tests.
</pre>
tag:gitlist.org,2012:commit/222cf9899dbe2936a1cc633cb07cd61f330b5660tmux: Don't match math like 3.14 or 2/3.14 as pathnames2025-11-28T00:19:03-08:00dblumedavid.blume@gmail.com
<pre></pre>
tag:gitlist.org,2012:commit/f609faeb2da70b8885247686ddf2287f7ee1da66Find just basenames with extensions, too.2025-11-27T23:24:44-08:00dblumedavid.blume@gmail.com
<pre>Decided that script.py should match, even when AC/DC shouldn't.
See: https://gist.github.com/dblume/51d36f5656ecbb03012c604e4156ecd6
</pre>
tag:gitlist.org,2012:commit/e5dfc28c971ecbcb0029addda459152e444829eatmux: Don't match paths whose lines or cols are bad.2025-11-20T21:47:51-08:00dblumedavid.blume@gmail.com
<pre>Sometimes GUID looking things matched because f.txt:30acd...
So now add (\>|$) at the end of the expression.
</pre>
tag:gitlist.org,2012:commit/e9f3ca3169af853a19b1a7c1116c13ff86d3000cYet another tweak to filepath matching2025-11-15T23:04:02-08:00dblumedavid.blume@gmail.com
<pre>* exclude the // in https://path/file
* Only allow basename:## if basename has a letter in it.
to avoid 10:30, which is more likely a time than line 30 of file "10".
</pre>
tag:gitlist.org,2012:commit/da4a070099bb46499bab7b4b9de27bb29621478dBetter tmux filepath selection.2025-11-15T20:38:34-08:00dblumedavid.blume@gmail.com
<pre>See links in the code. There's a useful GitHub Gist.
</pre>
tag:gitlist.org,2012:commit/cbc01e2fd2e37d9d69610026a3a761f370550488Add support for more paths2025-11-15T11:12:48-08:00dblumedavid.blume@gmail.com
<pre>Decided I wanted to allow paths with two separators, even if no linenum.
Ending with a linenum is always a match. So now matches are:
* file:23
* ~/path/filename
* /path/filename
* path/path/filename
The more obvious ones still match, of course:
* path/file:23:45
* "~/path with spaces/file":23:45
We intentionally do not match single separators
* (No match) path/filename
If we allowed that, the regex could be shorter, so there's that.
</pre>
tag:gitlist.org,2012:commit/de6c5708417adb2e5e8949450d5d8072c8743927Make the tmux file regex even shorter.2025-11-15T00:22:47-08:00dblumedavid.blume@gmail.com
<pre></pre>
tag:gitlist.org,2012:commit/fd9e15a623c600c4c58ca7b67bfbce037af9dc51tmux: Only match file paths with line numbers.2025-11-14T23:55:40-08:00dblumedavid.blume@gmail.com
<pre>Also match files that are just basenames and line numbers.
</pre>