From: Kepa <gnu.cognition199@slmails.com>
To: mbork@mbork.pl,"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: RE: Orgmode keybindings in Dired?
Date: Fri, 23 Aug 2024 14:40:54 +0000 [thread overview]
Message-ID: <172442405897.8.11906229861250563662.413725813@slmails.com> (raw)
In-Reply-To: <87o75jstll.fsf@mbork.pl>
Hi Marcin!
Below I shared some ideas
> -----Original Message-----
> From: mbork at mbork.pl
> <gvscwbfbwppxuzuayumtkykgivwkhhtzvnauvzkhlzgmkgc@simplelogin.co>
> Sent: Friday, August 23, 2024 7:21 AM
> To: Kepa <gnu.cognition199@slmails.com>
> Subject: Re: Orgmode keybindings in Dired?
>
> On 2024-08-22, at 18:27, Kepa <gnu.cognition199@slmails.com> wrote:
>
> > Hi
> >
> > I'm starting to use Dired and I like it.
> > 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?
> Could it have any side effect?
> > Any specific advice?
> >
> > Has this configuration already been shared? I assume someone else must
> have thought of this before...
>
> Which keybindings do you mean exactly? Dired's keybindings are usually
> consistent with the rest of Emacs (and most of them predate Org mode, I
> believe), so one would need to be quite careful not to introduce any
> inconsistencies.
Examples:
w to (dired-do-rename), instead of R, like refile speedkey.
o to (browse-url-of-dired-file), instead of W, like org-open-at-point speedkey.
M-RET to (dired-create-directory), instead of +.
And maybe other org speedkeys.
Although I have found that using dired-subtree gives naturally this oportunity. Here some examples (I must change "u" keybinding, since it is used to unmark files, maybe I could use C-g to unmark files, could it be risky?
;; Bind 'TAB' to toggle subtree visibility (cycle through subdirectories)
(with-eval-after-load 'dired
(define-key dired-mode-map (kbd "TAB") 'dired-subtree-cycle))
;; (org-speed-move-safe 'outline-up-heading) (similar to 'u' in Org-mode for dired-subtree-up)
(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)
>
> Best,
>
> --
> Marcin Borkowski
> https://mbork.pl
> https://crimsonelevendelightpetrichor.net/
next prev parent reply other threads:[~2024-08-23 14:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 18:27 Orgmode keybindings in Dired? Kepa
2024-08-23 12:51 ` Fraga, Eric
[not found] ` <87o75jstll.fsf@mbork.pl>
2024-08-23 14:40 ` Kepa [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-24 23:22 Kepa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=172442405897.8.11906229861250563662.413725813@slmails.com \
--to=gnu.cognition199@slmails.com \
--cc=emacs-orgmode@gnu.org \
--cc=mbork@mbork.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).