emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mark Barton <mbarton98@gmail.com>
To: Gerardo Moro <gerardomoro37@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How to open a link to a folder/file in Finder, not Dired
Date: Wed, 20 Oct 2021 09:08:16 -0700	[thread overview]
Message-ID: <9BD84FB3-4BC5-4A9F-A33C-C2F5C0AA3358@gmail.com> (raw)
In-Reply-To: <CAF4Fj9iYi8rb8bWF=LtRwib3RLkxMQQZqBwbWk5+PUuiQ+hvSQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

> On Oct 20, 2021, at 1:36 AM, Gerardo Moro <gerardomoro37@gmail.com> wrote:
> I am having the same problem as reported here: https://emacs.stackexchange.com/questions/66593/how-to-open-a-link-to-a-folder-file-in-finder-not-dired <https://emacs.stackexchange.com/questions/66593/how-to-open-a-link-to-a-folder-file-in-finder-not-dired> 
> I copy paste:
> I used to be able to create links with open-insert-link pointing to folders or files. When I clicked on them, I would be redirected to Finder. Lately, they are shown within Dired. How to control this behaviour? When I use either [[file:/users/Shared]] or [[file+emacs:/users/Shared]], and click on them, I get the dired buffer, not the Finder app. 
> Thanks!
> G.M.

According to the help for org-open-at-point it should work if you give a double prefix argument. I tried C-u C-u C-c C-o and it opened a link in finder.

I normally prefer dired, but when I need finder, I use Keyboard Maestro to associate H-f to bring the finder to focus in a manner specific to the current application. So when emacs is the current application, Keyboard Maestro will send the following keystrokes to emacs to open finder in the directory associated with the current buffer:    M-! open .

For the case where other applications other than emacs are the current application, I can configure the macro to bring up finder using the various application specific menu options to show file in finder. If there are no specific configurations for the application, then it just switches to finder.


[-- Attachment #2: Type: text/html, Size: 4587 bytes --]

  reply	other threads:[~2021-10-20 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20  8:36 How to open a link to a folder/file in Finder, not Dired Gerardo Moro
2021-10-20 16:08 ` Mark Barton [this message]
2021-10-20 17:58   ` Gerardo Moro

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:

  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=9BD84FB3-4BC5-4A9F-A33C-C2F5C0AA3358@gmail.com \
    --to=mbarton98@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gerardomoro37@gmail.com \


* 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


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).