Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordChars not working #1231

Closed
lailoken opened this issue Aug 29, 2023 · 3 comments
Closed

WordChars not working #1231

lailoken opened this issue Aug 29, 2023 · 3 comments

Comments

@lailoken
Copy link

lailoken commented Aug 29, 2023

I'm using mintty 3.64 (x86_64-pc-msys) Windows 22621)

I used to be able to double click on filenames:

../Tile.test/cpp_utils/reflection_simulation.cpp

But it now no longer selects the preceding ".." (this was also reported in #1208 ), so I tried by adding the WordChars option, but that has no effect either.

I have the following in my ~/.minttyrc:

Columns=160
Rows=60
FontHeight=10
CursorType=block
BellTaskbar=no
CursorBlinks=yes
ManageLEDs=3
DisplaySpeedup=9
TrimSelection=yes
Font=Input
WordChars=_.~-/:
RewrapOnResize=yes
Transparency=medium
ZoomFontWithWindow=no
@mintty
Copy link
Owner

mintty commented Aug 29, 2023

The ".." prefix handling has been fixed already in the repository, for the next release.

@lailoken
Copy link
Author

lailoken commented Aug 29, 2023

1208 mentions that, but there is no way for me to check whether WordChars is also working again.

If it's also fixed as a result, then this issue can be closed.

@sthalik
Copy link

sthalik commented Sep 1, 2023

FWIW, here's a PKGBUILD patch to use the repository's version in MSYS2. The prerelease change makes clicking on ./foo/bar result in selecting the . as well. Otherwise, only the /foo/bar gets selected unless it's the leading dot that's clicked.

Your mileage will vary as to what pkg{name,ver,rel} to use.

diff --git mintty/PKGBUILD mintty/PKGBUILD
index f146742..b627db5 100644
--- mintty/PKGBUILD
+++ mintty/PKGBUILD
@@ -2,32 +2,32 @@
 
 pkgname=mintty
 pkgver=3.6.4
-pkgrel=1
+pkgrel=99
 epoch=1
 pkgdesc="Terminal emulator with native Windows look and feel"
 arch=('i686' 'x86_64')
 license=('spdx:GPL-3.0-or-later')
 depends=('sh')
-makedepends=('gcc')
+makedepends=('gcc' 'make')
 url="https://mintty.github.io"
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mintty/mintty/archive/${pkgver}.tar.gz
+source=('mintty::git+https://github.com/mintty/mintty'
         "001-default-size.patch")
-sha256sums=('5347bd237ed224693664bee96522b969fa1ac544036dae7e0cc3f9db54d000db'
+sha256sums=('SKIP'
             '2bcd93ed0e91c5dad900e3c15c7de33e1fb5388de227a24538fb4409d3363445')
 
 prepare() {
-  cd "${pkgname}-${pkgver}"
+  cd "${pkgname}"
 
   patch -Np1 -i "${srcdir}/001-default-size.patch"
 }
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}"
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgname}"
   mkdir -p ${pkgdir}/usr/{bin,share}
   mkdir -p ${pkgdir}/usr/share/man/man1
   mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}

@lailoken lailoken closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants