commit 1455b43aa8389f91efdcf289356d99d703fa6424 Spenser Truex <truex@equwal.com> 2026-09-22 20:21:27 -0700 Windows: no right-to-left reordering in the fzf screen The preview of bm can show Arabic or Hebrew text of a page. mintty then reorders the whole screen line, and the text leaves the preview box. The shortcut now starts mintty with Bidi=1, which turns off the reordering on the alternate screen, where fzf runs. The normal screen keeps it.
contrib/windows/sbm.nsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/contrib/windows/sbm.nsi b/contrib/windows/sbm.nsi index 81614df..f5e541e 100755 --- a/contrib/windows/sbm.nsi +++ b/contrib/windows/sbm.nsi @@ -34,7 +34,11 @@ ManifestDPIAware true !endif !define UNINSTKEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\sbm" -!define MINTTYARGS "--class sbm -t sbm -s 120,32 -p center -o ConfirmExit=no -o Scrollbar=none /bin/bash -lc bm" +; Bidi=1: no right-to-left reordering on the alternate screen, where fzf +; runs. The preview can show Arabic or Hebrew text of a page, and mintty +; would then move that text out of the preview box (see "Box layout with +; right-to-left text" in the mintty manual). +!define MINTTYARGS "--class sbm -t sbm -s 120,32 -p center -o ConfirmExit=no -o Scrollbar=none -o Bidi=1 /bin/bash -lc bm" !define WATCHARGS '--class sbm-watch -w hide /bin/bash -lc "exec bm-watch brave chrome chromium edge vivaldi"' Name "sbm ${VERSION}"