Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaz-yos/reveal-in-osx-finder
Reveal buffer-associated file in OS X Finder
https://github.com/kaz-yos/reveal-in-osx-finder
emacs-lisp melpa osx-finder
Last synced: about 2 months ago
JSON representation
Reveal buffer-associated file in OS X Finder
- Host: GitHub
- URL: https://github.com/kaz-yos/reveal-in-osx-finder
- Owner: kaz-yos
- Created: 2014-02-04T17:49:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T16:00:25.000Z (over 3 years ago)
- Last Synced: 2024-05-02T05:10:26.062Z (8 months ago)
- Topics: emacs-lisp, melpa, osx-finder
- Language: Emacs Lisp
- Homepage:
- Size: 255 KB
- Stars: 41
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
reveal-in-osx-finder
=====**Usage:**
- If ```M-x reveal-in-osx-finder``` is invoked in a file-associated buffer, it will open the folder enclosing the file in the OS X Finder. It will also highlight the file the buffer is associated with within the folder.
- If ```M-x reveal-in-osx-finder``` is invoked in a dired buffer, it will open the current folder in the OS X Finder. It will also highlight the file at point if available.
- If ```M-x reveal-in-osx-finder``` is invoked in a buffer not associated with a file, it will open the folder defined in the default-directory variable.
**Installation**
This package depends on ```dired.el```, which should be available in the default emacs installation. It only works on the OS X environment on Macs.
It is available on the MELPA repository. Do the following, then choose and install reveal-in-osx-finder.
To configure the MELPA, see this: http://melpa.milkbox.net/#/getting-started
```
M-x list-packages
```Then, put the following in your emacs configuration file.
```lisp
;; To load at the start up
(require 'reveal-in-osx-finder)
;; If you want to configure a keybinding (e.g., C-c z), add the following
(global-set-key (kbd "C-c z") 'reveal-in-osx-finder)
```**Acknowledgement:**
This is a modified version of the ```open-finder``` found at the URL below. Thank you elemakil and lawlist for introducing this nice piece of code,
http://stackoverflow.com/questions/20510333/in-emacs-how-to-show-current-file-in-finder
and Peter Salazar for pointing out a useful link about AppleScript (below),
http://stackoverflow.com/questions/11222501/finding-a-file-selecting-it-in-finder-issue
and mikeypostman and purcell for auditing the code for MELPA approval.