From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IJNyNHprymbmfgAA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Aug 2024 23:23:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IJNyNHprymbmfgAA62LTzQ (envelope-from ) for ; Sun, 25 Aug 2024 01:23:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=As8X93ie; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); dmarc=pass (policy=quarantine) header.from=slmails.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724541818; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=m0ZSE7Ci78VOHB8yzVqqn4jL+YKEbnIgMeSH39IhkME=; b=IKPAV5Kg62HDTPhN+TdBk7BuJnt7wZ0GOrtTsygrMvDF/ljMp6+BnCHdKIE5u3jstAAVLs n66bXGng0DEhlyuNbDermO5y0488yZd5YVAu0NjAWphb5dtE5IC3ALi7Pw7sjUf0fIiVnY dr6IM1TmRKdoghscWF/z8ev5vMj0ZO7XiB7m8sHSvaMtJ0dPpnLVQ9383j0T/1Me4nYWLD 8pynjGgbLxvhy4/lBv0/Cekw0OeoOnyEvg/axxHkKR2lQxw24T5JcGV8iPTl1KWSfaWDW+ g6QxZ6gMbk3nLVTUPt9JVXc2aeSAEeO3FpLh82lORdCaDFPGNKxLef2p4B8upA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1724541818; a=rsa-sha256; cv=pass; b=leQzeJkVVwy+qQvs38wbFjPVN7MfQGNqaTIvyrHK14RjK+qsqON14st6hGeUJ7O152eugb BGqGy/Dy1xsDV8RtD7rK64vzVkP92SKw+hfHKNF2c0yTm5yTGh11Yvd29fzKQ/jnjhcmtT KJ9niJh1hHnWj9POHqQQr4LztDzRyAZkJDbXtSzJD+QCnDLzF+ZAkaMTyT2H98FCbD0128 lUkhwgW6puaoFxGsBj6+b7Zq5GMoSbbWQ75ThjgSx3VrJZqG+lJdA9kv2NvYioOxuMwHfH E8Ulun4NVKkfminWJAodCUgqudrS4UK5DkdGmy5zt6zqLgufi4FGLJo3zYlywA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=As8X93ie; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); dmarc=pass (policy=quarantine) header.from=slmails.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6DE15A6EB for ; Sun, 25 Aug 2024 01:23:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1si05d-0001JT-No; Sat, 24 Aug 2024 19:22:37 -0400 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 1si05b-0001J5-FX for emacs-orgmode@gnu.org; Sat, 24 Aug 2024 19:22:35 -0400 Received: from mail-200167.simplelogin.co ([176.119.200.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1si05Z-0007QB-Lt for emacs-orgmode@gnu.org; Sat, 24 Aug 2024 19:22:35 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1724541750; cv=none; b=rEGqiTWKaPpP7Ynk7hpc38LLgptb44O08w0hqHkwBeaGl/9ObvnklyzLm/UAQlxIQ47hCapUEF6CicHayKo72eDTDZaYynhTUsfO3zfn0Q83PAtOMP4w03z4VkFLHw/Z9ccRNTZ1Oe3mgJjxPrWMiV8d6wmgL73DgoCw63J4VCAGqG2MTHCHxvv+36l9gOEQQWy3OjZhRufWSFzLo8+bsAm4Ac4YorBLBl1mUcVz9E9jkiUI4YVn7J7/48Mk2sGKgLvPHKh16eqI0HQS8WSY39VIf4Egw0TrJD7hxWmAZ2aZW0vahzYmrAnphuDkXe3q9L8zIDJmmUkIrh5f/lQ4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1724541750; c=relaxed/simple; bh=LTJTnYUI+UyUaCzH8kPh6rR73GCfCkuH9QAsuI7uTTA=; h=Date:Subject:From:To; b=w8CmhxD4n1dn2v4XcarPA3lww81syt+qhnw2Z2SFvFYjn4NcwmUx8i9q8+msIOngpt0BeoDnceQGhp3po36fTE31GAQzphxlblMib7LDTDZARIDsB8YNNnIov4USxhhlXyohFzX9us0CF8HiOtmoKeqr+CavJE5Pbyq0+jrtFXKUSOkwgCyj2NDVQ2IQWPDXcSCqLZKw/b7Vi45sxE300eQztInYO77BuBBfkWARk+nN5DpBDrj+z+0bQRlxe/o9u0//3HshgNyKak6eWUbpJ8voro6Htw/5htJLnmo4sVCQgO0bDXj3SjhPiPFWscLF4Q3j1izf1r3oExRCuyp43w== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1724541750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m0ZSE7Ci78VOHB8yzVqqn4jL+YKEbnIgMeSH39IhkME=; b=As8X93ieIOBQFRVgGL8wV9D+5Cu5L8dSNqF6wy0nH5wfaSKqQVZr/W7lXEvpEW9avMQYb/ 9kSBCma+PJ6CTbxIAaEDFJqH3aSPoAi1FVg0xUY0FqRv5vawXTX/irQ4jPBl8zm5c/GIHK OiodzB1mlfkHBS1JOl/PBcfjNiIkAvg= Content-Type: multipart/alternative; boundary="------------PdJSUOT0mpO9AbguYRH9sJmq" Date: Sun, 25 Aug 2024 01:22:23 +0200 Subject: Re: Orgmode keybindings in Dired? MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kepa To: "emacs-orgmode@gnu.org" Message-ID: <172454174968.7.5350852330388450305.414833657@slmails.com> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 414833657 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.167; envelope-from=sl.lmysyibuge2dqmztgy2tolbageztsmrugqzf2.nc3d4ydxtijzq@slmails.com; helo=mail-200167.simplelogin.co 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, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.02 X-Spam-Score: -6.02 X-Migadu-Queue-Id: 6DE15A6EB X-Migadu-Scanner: mx11.migadu.com X-TUID: PM8drl3guBqS --------------PdJSUOT0mpO9AbguYRH9sJmq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > From:     Fraga, Eric > Subject:     Re: Orgmode keybindings in Dired? > Date:     Fri, 23 Aug 2024 12:51:32 +0000 > User-agent:     gnus (Emacs 31.0.50) > > Response below/inline for email Kepa wrote: > > (original email sent 22 Aug 2024 at 18:27) > > I'm starting to use Dired and I like it. > > dired is an excellent tool! > > > I would like to know your opinion, fellow orgmode users about > > keybindings in Dired: > > Is it worth modifying Dired's keybindings to match those of Org-mode? > > What exactly are you imagining?  org mode keybindings make sense within > an org file.  I'm not sure what you expect to do in a dired buffer that > would use org mode keybindings? > > Having said that, I do use org-store-link (globally bound to C-c l) all > the time in dired buffers. > > -- > : Eric S Fraga, with org 9.7.10-5ebd97 in Emacs 31.0.50 By the way, Eric, thanks for your tip. I probably wouldn't found that org-store-link can be used in Dired. Combined with org-super-links and org-open-at-point, it makes it joyful. You asked about what was I imagining, so I will share the configuration I have finished with (by now). My imagination goes beyond, though, like using "r" and "l" to "move" subdirectories one level down or up. Although maybe I would never use it. As said, the keybindings I am using in Dired, inspired many of them by org-mode keybindings: ;; Bind 'TAB' to toggle subtree visibility (cycle through subdirectories) (with-eval-after-load 'dired   (define-key dired-mode-map (kbd "TAB") 'dired-subtree-cycle)) ;; Create a new directory (similar to 'M-RET' in Org-mode)   ;; Existing Dired keybinding: '+' is used for 'dired-create-directory'   ;; New keybinding: 'M-RET' (define-key dired-mode-map (kbd "M-RET") 'dired-create-directory) ;; (org-speed-move-safe 'outline-up-heading) (similar to 'u' in Org-mode for dired-subtree-up)   ;; Existing Dired keybinding: 'u' for dired-unmark (define-key dired-mode-map (kbd "u") 'dired-subtree-up)  ;; Bind 's' to narrow the view to the current subdirectory (define-key dired-mode-map (kbd "s") 'dired-subtree-narrow) (define-key dired-mode-map (kbd "U") 'dired-unmark) (define-key dired-mode-map (kbd "C-g") 'dired-unmark-all-marks) (define-key dired-mode-map (kbd "N") 'dired-next-line) (define-key dired-mode-map (kbd "C-") 'dired-w32explore) --------------PdJSUOT0mpO9AbguYRH9sJmq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

From:     Fraga, Eric
Subject:     Re: Orgmode keybindings in Dired?
Date:     Fri, 23 Aug 2024 12:51:32 +0000
User-agent:     gnus (Emacs 31.0.50)

Response below/inline for email Kepa wrote:
> (original email sent 22 Aug 2024 at 18:27)
> I'm starting to use Dired and I like it.

dired is an excellent tool!

> I would like to know your opinion, fellow orgmode users about
> keybindings in Dired:
> Is it worth modifying Dired's keybindings to match those of Org-mode?

What exactly are you imagining?  org mode keybindings make sense within
an org file.  I'm not sure what you expect to do in a dired buffer that
would use org mode keybindings?

Having said that, I do use org-store-link (globally bound to C-c l) all
the time in dired buffers.

--
: Eric S Fraga, with org 9.7.10-5ebd97 in Emacs 31.0.50

By the way, Eric, thanks for your tip. I probably wouldn't found that org-store-link can be used in Dired. Combined with org-super-links and org-open-at-point, it makes it joyful.

You asked about what was I imagining, so I will share the configuration I have finished with (by now).

My imagination goes beyond, though, like using "r" and "l" to "move" subdirectories one level down or up. Although maybe I would never use it. As said, the keybindings I am using in Dired, inspired many of them by org-mode keybindings:

;; Bind 'TAB' to toggle subtree visibility (cycle through subdirectories)
(with-eval-after-load 'dired
  (define-key dired-mode-map (kbd "TAB") 'dired-subtree-cycle))

;; Create a new directory (similar to 'M-RET' in Org-mode)
  ;; Existing Dired keybinding: '+' is used for 'dired-create-directory'
  ;; New keybinding: 'M-RET'
(define-key dired-mode-map (kbd "M-RET") 'dired-create-directory)

;; (org-speed-move-safe 'outline-up-heading) (similar to 'u' in Org-mode for dired-subtree-up)
  ;; Existing Dired keybinding: 'u' for dired-unmark
(define-key dired-mode-map (kbd "u") 'dired-subtree-up)

 ;; Bind 's' to narrow the view to the current subdirectory
(define-key dired-mode-map (kbd "s") 'dired-subtree-narrow)

(define-key dired-mode-map (kbd "U") 'dired-unmark)
(define-key dired-mode-map (kbd "C-g") 'dired-unmark-all-marks)
(define-key dired-mode-map (kbd "N") 'dired-next-line)
(define-key dired-mode-map (kbd "C-<return>") 'dired-w32explore)

--------------PdJSUOT0mpO9AbguYRH9sJmq--