From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id B702D2B7EA for ; Mon, 5 Feb 2024 19:05:18 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1707156318; b=RwEDdPXnRjpFwIYkXCgf9HMTKdX7Oz6o8T7i/n+7EKDp7ZVPgcSLrI4zAzLoAIeNCe8bsN/j1W 0htuRSkPWMaVRa0HFDpD2O/90/taWZqHKE8NPpAU/OGJia9LHSdmGc3groHzHjFznpLHs3CZVK bV9usjJ93LZFyvHoOuMhchYR5D3HCvsah2/YrPn1zxVABze1R/u5FdbZjVRiamtimCeYgEJAjo GPj7hNGNpZd7D9Af/lB5PMk/Fe16htoTpVKM8s8+MFuFv0bYumpCMwOQV3x2oKR9Q9SH8tyynh aB30wV6FqJmgxrfR5IsyhaVIVpL4zSH9CT+o1MLO2vNdvQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-vk1-f171.google.com) smtp.remote-ip=209.85.221.171; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1707156318; bh=OViI+BQngD4g/VgpCePHOdhoLq8DOcwrOpSxKL3rU3s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=lb2Gh1pKCFBSQ0gUox9GTtHXQwhQf4sPvOzA7taEDSYfLkVUA02oo91SGzy/8H6BS7DLFI6BNI iOnLPRiHARnjDuRWRzXGSdfbe6UHYHrCLEmlZrETktjWKVOcaigR3LVFqk7AFK+GX9NgB7x7uU 5j0DTTYly7Svo1Yr2+Q5aZs7v3oCxmN7a/gtsVxst2b1DKOYSa4MccB4auXbw/TiKpPICbLaph /6srq6W5iGv1BYOqJpm2xcpi0CxcAoebe5+nXUO2B8dMS1b38j/tAhg6mGYe+HMvtXwFY8pd4k veTgd9YUT014xrsMNnhnruBfOm4GJGzI3Be+J3AR2ofTmA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=OViI+BQngD4g/VgpCePHOdhoLq8DOcwrOpSxKL3rU3s=; b=hfK31fjzMGG73yVWgv8s2y8/kA KjPqvSI9zav4tilzzIepa8aLpFTj2Ki/rXYWsRdBYbPTMb55iDj2WCuImYj9EIYdNapvVN7PUAdkx KHchXcNpzLIYfG7rB8DyJZ6bx3cH93xdVtGj74FomhSHzjW/GzPsKuzs6jqHvQkKdIchQLapja20K x6F4yJDsbmR8tfayhg3AVhptlYjCXE8B92jPG4YQdBZyKPcPUaZsFxHatpjQsK9Ku71KwUBik+N10 NJ6jm2kalIQoabuiu4f95o+PrcPaO2OZ0pdf8REti6LHcFICNIbpcBlk55Vqh7taETg64rojVbSnJ 0L+ZCJfQ==; Received: by zero.zsh.org with local id 1rX3LJ-000M2Z-1l; Mon, 05 Feb 2024 18:05:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-vk1-f171.google.com) smtp.remote-ip=209.85.221.171; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-vk1-f171.google.com ([209.85.221.171]:54569) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rX3Kc-000LMy-O6; Mon, 05 Feb 2024 18:04:35 +0000 Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-4c01ac04569so913789e0c.1 for ; Mon, 05 Feb 2024 10:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707156273; x=1707761073; darn=zsh.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=OViI+BQngD4g/VgpCePHOdhoLq8DOcwrOpSxKL3rU3s=; b=FLBJ6OLnGHOXOTmdd5YcroAvxTFe1oyBYcsxi/1Tk9bNYU8FzD/LoOQKMMzbOkeDYx r+2BUTxN93z4pN8YJ2Svep/r5vdkjgzridYiftFEnaHzqcSXG3nmlvFXFZwu/8P/ppZG 22USq6HvGTJwSVhSatuDopYo8CYKcTJpqe1zT8PskkGaswAIsjEbQlVwUtIgkoovagfu L10/AMKzDeaZYafO0KTd6X29NJbQUkG6mdJeQb65bzkfYCgEaGH58WpUgXX0VzLGkGdJ b3FLNmCgkzhv3jqHJYV2yaQYs4IGKhOptuTlnVvO6OT4u+IeeRxq9/TEKOJdVbX7KpvE 4qLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707156273; x=1707761073; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OViI+BQngD4g/VgpCePHOdhoLq8DOcwrOpSxKL3rU3s=; b=fqVG2Y3yqjK7MfUBC+GLQxC5Ng5BaU3MNYsuylZMKNL7q5tttDgvq6JqdqM1VhDL4v wScLDiO8ph09Jia2MslDKyi+Oh2VQ7AYp0GxK+vc+bXZ7UgCQZqr9CQjlqpkWAzIhjcc sLaia6tknx2H9X2ocb6ASjHxES3iUGMdWuoxg76lmtiXsMphx7Vt2Um0ZvyA9+6jxoyp jF5IraPHLT3OkbkmfNcgMqSulKIU7Bca0uulgaqIgMRDmHIPKWURxLFGjQzktYkbXuzd MPOCriHjwrv8qatc/szWPYPqqH0z6vafen3F8rUKw3wm1LNbIWoVaeahy8nbRTfeGST4 e4Qw== X-Gm-Message-State: AOJu0Yw3tgs5Szq1Z41FVR6PUFGVILtvOT6QMWRzfugZlNpm6HY8Ui5U cuA4wXlGs6yEsVzStevMmIZDxUvxoG3g38aEq8EkYpnuSv7KtNF4uQKOASPLSA6TYg5b4CymfN2 zTVO9sYEpnzMZxxGzSmm5qX0nUncfAR0msgE= X-Google-Smtp-Source: AGHT+IEDxY+OppCr8/FrU/2JGn8PYj8Kc/4vOjgiPZQdpYPXbGp8CIm23CRs9x/BZCA5Jf6b8PQZMUNU0o+DisXiypc= X-Received: by 2002:a05:6122:587:b0:4c0:8ec:2331 with SMTP id i7-20020a056122058700b004c008ec2331mr283062vko.2.1707156273269; Mon, 05 Feb 2024 10:04:33 -0800 (PST) MIME-Version: 1.0 From: Henri Tremblay Date: Mon, 5 Feb 2024 13:04:21 -0500 Message-ID: Subject: Java completion for Java files To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="0000000000003e92400610a64b53" X-Seq: 29639 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --0000000000003e92400610a64b53 Content-Type: text/plain; charset="UTF-8" Hi, I was directed here to discuss Java completion. Java now supports (since Java 10 I think) command lines like java Math.java or java src/main/java/org/me/Math.java. It will then just compile and launch that java file. But zsh won't autocomplete for that. It only wants a jar, class file or whatever. I would like normal completion on file and directories with a filter on .java files. Possibly on top of the classpath way (which I never use so just deactivating it would be fine with me, but we can keep the existing and add more completion on top). The problem is probably somewhere in there: https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_java but I don't know enough how it works to propose a fix myself. Any help would be appreciated, Henri Tremblay Java Champion EasyMock and Objenesis dev lead --0000000000003e92400610a64b53 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I was directed here to discuss Java= completion.

Java now supports (since Java 10 I think) com= mand lines like=C2=A0

java Math.java=C2=A0

or=C2=A0

java src/main/java/org/me/Math.java.=C2=A0

It will then just c= ompile and launch that java file. But zsh won't autocomplete for that. = It only wants a jar, class file or whatever.

I would like normal completion on f= ile and directories with a filter on .java files. Possibly on top of the cl= asspath way (which I never use so just deactivating it would be fine with m= e, but we can keep the existing and add more completion on top).

The problem is probably some= where in there:=C2=A0https://github.com/zsh-users/zsh/blob/mast= er/Completion/Unix/Command/_java but I don't know enough how it wor= ks to propose a fix myself.

Any help would be appreciated,

Henri Tremblay
Java Champion=
EasyMock and Objen= esis dev lead

--0000000000003e92400610a64b53--