Skip to content

Commit ebcace2

Browse files
committed
added externalApps page
1 parent f1658c2 commit ebcace2

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

externalApps.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
permalink: externalApps.html
3+
layout: default
4+
5+
# mainAnchor is used by Apple links
6+
mainAnchor: externalApps
7+
title: External Apps Integration
8+
---
9+
10+
Integrate with other macOS applications
11+
==================
12+
13+
VisualDiffer allows
14+
15+
- to view text files on external editors like BBEdit or SublimeText
16+
- to compare files on external comparators like Kaleidoscope or the beloved BBEdit
17+
18+
The integration requires some shell scripts, they allow the editor caret to be moved at specific lines or open new buffers on existing application instance.
19+
20+
Text Editors
21+
=======
22+
23+
Files can be open using your preferred text editor.
24+
Select `Open With` from the context menu to select the destination application.
25+
In addiction you can configure the preferred editor from the Preference panel, the selected application will be shown on the top of `Open With` menu.
26+
27+
Open editor at specific line
28+
-----
29+
30+
From the Files Diff window it's possible to pass to the application the selected line number so the cursor will move to it.
31+
It's necessary to create a Unix script and place it inside the directory
32+
33+
/Users/<<username>>/Library/Application Scripts/com.visualdiffer/editors
34+
35+
The script must have a very specific file name ending with `.sh`.
36+
The file name is the so called `App Bundle Identifier` and can be found executing from the Terminal App the following command (the example uses Sublime Text)
37+
38+
osascript -e 'id of app "/Applications/Sublime Text.app"'
39+
40+
that returns `com.sublimetext.3` so the file name will be
41+
42+
com.sublimetext.3.sh
43+
44+
Some examples are available at [externalapp-integration](https://github.com/visualdiffer/externalapp-integration/tree/master/editors) repository
45+

index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Table of Contents
1111
* [Folder Colors Legend](foldersLegend.html)
1212
* [File Colors Legend](fileLegend.html)
1313
* [Comparison Methods](comparisonMethods.html)
14+
* [Integrate with other macOS applications](externalApps.html)
1415
* [Trusted Paths](trustedPaths.html)
1516
* [Alignment Rules](alignRules.html)
1617

@@ -19,7 +20,7 @@ Extra Features
1920

2021
* [Unix Shell Scripting Support](unixshell.html)
2122
* [Frequently Asked Questions](faq.html)
22-
* [Integrate with OSX Finder context menu](finder.html)
23+
* [Integrate with macOS Finder context menu](finder.html)
2324

2425

2526
Other sites

0 commit comments

Comments
 (0)