From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Charles Choi Newsgroups: gmane.emacs.devel Subject: Re: Keen on a dired-hide-details-mode patch? Date: Thu, 1 Aug 2024 12:39:26 -0700 Message-ID: References: <6083C0AE-D71B-4E3C-B878-8F89E0BD91E3@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26398"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 01 21:40:38 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sZbfB-0006kb-SK for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Aug 2024 21:40:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZbeN-0001Rk-JV; Thu, 01 Aug 2024 15:39:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZbeM-0001RV-KX for emacs-devel@gnu.org; Thu, 01 Aug 2024 15:39:46 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZbeL-0002rh-3o for emacs-devel@gnu.org; Thu, 01 Aug 2024 15:39:46 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1fdd6d81812so62617545ad.1 for ; Thu, 01 Aug 2024 12:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722541182; x=1723145982; darn=gnu.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=/pkEnXrydx5TIJGpxxj4N81CWhlqvKywE4gt0Xbt41c=; b=E4WxGqsdHaBxUioWGWDmVGyJOE58A2rFiRJdTXT2tsT/G8kEalw+agCwOnmAVyWRG9 tTZlkKxxaElPIBXxjk7xN3fAgcpRusxijz96fjK70bhGciig3lyCZowkq41bicv8qLOQ WYGFqQKPwqrN0LE8zgLt6hMgFbZ2FOdE/lcd928S/gaD0+OusrXQgm7Sqv2qFqJ3FHrE VQNLJKiiGLXzZ1CNw67LKsQoWGYynS6D52lyA9StmRG/BTp5zIwemrQH7eLSF5zvB21R okc/JISCeD/I7t2VPaUR1ADsNucmq70O0QJ387ywTfumTiJGYY/5TqjNoWAiViyn+avV qLqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722541182; x=1723145982; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/pkEnXrydx5TIJGpxxj4N81CWhlqvKywE4gt0Xbt41c=; b=dXmQ+tWD4prve9TRjP2Kf3Y1nAsj8YqKTFCCh8C+gBcJahimOLsCxknxLjB1m56I06 m0JCOVyM3VWxy0dXsAMydZtlJ6Yjv6ebujIvxbmT/gZZUsOPjA5GJLu/5dOguw4jvihp ASCjXc8cG4Rt5UM7tzK1ePWC5ZWny4j02CECvkeed0oJI+2GS5zM4Et0muQOz9+T4Jc6 VzoEEnjhOnYOEatUFl9HKzUklvE5q0SKhk/c7K5PhF/XmMCK5FUd86TOYAQi2fctqJOl NObo3nXzz0zfniFm46uEAaP7sMWRRwXZiNUM2l7VdWTzw9Elr+tOpfB0lPAXCu5NRA3Y 6zBA== X-Gm-Message-State: AOJu0YzXfa/TuuLhlIWmW1YgdjhTK+mzgmk9jW+FJIOzAaaUOjVfvmwP okYANAnrpMMs6Xr3VeDUjvHgdLauJGBnjoYwHQA/SKwnfQCnpqd3WYOmYQ== X-Google-Smtp-Source: AGHT+IGsYd3eV0M6hQbkJUtb0tMOJF/mVWI7VqYsJH4tlR7eVpYdLmXJV+3na7X+XPUxJPAnA7OrTQ== X-Received: by 2002:a17:902:d488:b0:1fd:93d2:fb76 with SMTP id d9443c01a7336-1ff572a3daamr16053555ad.31.1722541181818; Thu, 01 Aug 2024 12:39:41 -0700 (PDT) Original-Received: from smtpclient.apple (c-73-170-198-193.hsd1.ca.comcast.net. [73.170.198.193]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff58f19d00sm2704565ad.12.2024.08.01.12.39.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2024 12:39:41 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=kickingvegas@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322273 Archived-At: Alvaro -=20 Yes, `dired-maybe-insert-subdir` is the command that inserts a subdir = provided it is issued when the point is over a directory. For reference, = I invoke it from Casual Dired from here = https://github.com/kickingvegas/casual-dired/blob/4be72b52f91700cdb529a185= b8f6f21bd0a86542/lisp/casual-dired.el#L76 Ideally your hiding code would show the relative pathname of a subdir = when hiding is turned on, otherwise the fullpath. Note that my current understanding of subdir behavior with default Dired = is that it only supports subdirectories within the current parent = directory. I vaguely recall there are other 3rd party packages that try = to let you insert out-of-hierarchy subdirs. I don=E2=80=99t think it=E2=80= =99s something you need to support, but this patch could potentially = break such packages if pushed into core. All my best - Charles =E2=80=94 Charles Y. Choi, Ph.D. kickingvegas@gmail.com > On Aug 1, 2024, at 9:31=E2=80=AFAM, Alvaro Ramirez = wrote: >=20 > For the subdirs view in the screenshot you sent, I triggered it using = `M-x dired-maybe-insert-subdir`. Lemme know if you're using a different = mechanism.