emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to open a link to a folder/file in Finder, not Dired
@ 2021-10-20  8:36 Gerardo Moro
  2021-10-20 16:08 ` Mark Barton
  0 siblings, 1 reply; 3+ messages in thread
From: Gerardo Moro @ 2021-10-20  8:36 UTC (permalink / raw)
  To: emacs-orgmode

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

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


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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to open a link to a folder/file in Finder, not Dired
  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
  2021-10-20 17:58   ` Gerardo Moro
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Barton @ 2021-10-20 16:08 UTC (permalink / raw)
  To: Gerardo Moro; +Cc: emacs-orgmode

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

Mark

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to open a link to a folder/file in Finder, not Dired
  2021-10-20 16:08 ` Mark Barton
@ 2021-10-20 17:58   ` Gerardo Moro
  0 siblings, 0 replies; 3+ messages in thread
From: Gerardo Moro @ 2021-10-20 17:58 UTC (permalink / raw)
  To: Mark Barton; +Cc: emacs-orgmode

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

It works! Thanks so much!

El mié, 20 oct 2021 a las 19:08, Mark Barton (<mbarton98@gmail.com>)
escribió:

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-20 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-10-20 17:58   ` Gerardo Moro

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