From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Friendlier dired experience [CODE INCLUDED] Date: Thu, 5 Nov 2020 09:08:05 -0800 (PST) Message-ID: <795e8046-10ea-4e91-9978-ed6d20bab2b7@default> References: <20201103104340.q34kqfita55w2u7h@E15-2016.optimum.net> <20201104183228.xf7w4yf3fw3427y5@E15-2016.optimum.net> <20201105092232.fk4r5dexnay3eyln@E15-2016.optimum.net> <20201105143800.7vt5jfr4gg2wigyb@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30589"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Boruch Baum , Emacs-Devel List To: Stefan Monnier , Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 05 18:09:45 2020 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 1kailc-0007pS-Vw for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Nov 2020 18:09:45 +0100 Original-Received: from localhost ([::1]:33606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kailc-00063c-0I for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Nov 2020 12:09:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaikA-0004vC-2v for emacs-devel@gnu.org; Thu, 05 Nov 2020 12:08:14 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:55044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaik8-0007XT-6Q for emacs-devel@gnu.org; Thu, 05 Nov 2020 12:08:13 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A5H5ick134604; Thu, 5 Nov 2020 17:08:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=KzeJ9LCi1CS3q4Pl/CzBOHyJHbIpHwTMjOQ2jFD7c18=; b=ri/ESju2GLzbbXrA2ysnDcthVrmUt8+CORl7rqy69IoK+UmhnPqISb+ftVY4gb5rVufG mVv4aYRazykIlWAq/dJ6kGXtMqvTn2JE9yy0fAPwSpEWxM06qHxGk0ZHqhaSbci/UomQ So0QR5JGIVx6cGhRzko0Bg8cOIISRbwOAQIm59i1kwa7a+nLLVy6daTSJ8n6Zf/mvilS U8Wa4bQJkFMQax0LhhwWHlFUCgCPAdhTk5BFQW2uC+tlpMu08howAMts0srRZfzu3jbc DzyiB8KQIsX4UfIVLXNRt5ClC1vcXVkxDGeInyQskern19gpzbaRpz2y4M5OlEOAdnUD 8Q== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 34hhvcn2d9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 05 Nov 2020 17:08:08 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A5H67Bu166323; Thu, 5 Nov 2020 17:08:07 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 34hvs0yn1u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 05 Nov 2020 17:08:07 +0000 Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0A5H8595012434; Thu, 5 Nov 2020 17:08:06 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9796 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011050113 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9796 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 phishscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011050113 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/05 12:08:10 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.devel:258741 Archived-At: > >> You'd still have the downside that the general bookmarks include all t= he > >> other non-directory bookmarks, so maybe it's not a good idea anyway. > >> [ I'm not using bookmarks very much, so my intuition here is poor. ] > > Why would that be a downside? >=20 > That you can have name conflicts between the diredc and other bookmarks, > and that when selecting a diredc bookmark you'd have to see all those > other bookmarks which might make it more timeconsuming to find the > bookmark you're after. >=20 > For the first problem, I don't have a good solution. > For the second, I think this actually hints at a need for the generic > bookmark-selection functionality to offer a way to first select a *type* > of bookmark and only then pick a name among the remaining candidates. This already exists, with Bookmark+. 1. There are jump commands based on types. For Dired bookmarks there are these (also C-x j 4 versions, for other-window): C-x j d Jump to a Dired bookmark. C-x j . d Jump to a Dired bookmark for the `default-directory'. And for an arbitrary type (what you suggested) there is C-x j : (`bmkp-jump-to-type'). From the doc: Jump to a bookmark of a given type. You are prompted for the type. Otherwise, this is the same as `bookmark-jump' - see that, in particular, for info about using a prefix argument. When prompted for the type, you can use completion against the known bookmark types (see `bmkp-types-alist'). Completion is lax, so you can also enter the name of a bookmark `handler' or `file-handler' function, without completion. Bookmarks with that entry value are then the jump candidates. [All bookmark jump commands are on prefix key `C-x j'. And `.' means "this" in bookmark keys. E.g., `C-x j . f' jumps to a file bookmark for the current (this) dir, `C-x j t .' is a prefix key for "this" bookmarks with various tag sets (e.g. jump to a file in this directory that has some, or all, of a set of tags you specify, or those matching a regexp).] 2. In the bookmark-list display (`C-x r l'), you can show only bookmarks of a given type, e.g. only Dired bookmarks. And you can mark by type or sort by type. (And you can do lots of things to/with the marked bookmarks, from search to nuts. ;-))