Sublime Forum

Buddy Apps

#1

I would like to share experiments in pairing Subl with external tools. Starting with Ubuntu but applicable to other environments. Currently many project files are scattered through Subl ecosystem.

Of course tools are in Subl Text such as Goto > Goto Anything.

But why not keep all project files in an external CherryTree container like github but at same time using Subl as the primary editor? The tools bound together? In a toolchain. Cooperating.

Start by installing CherryTree in your desktop. CherryTree is an excellent and powerful notes editor. There are other notes editors of course but for our purpose we trial CherryTree.

Now create a gathering of a few notes as a test case.

To show full potential with Subl as buddy add a few code boxes in different languages. We might start by embedding a basic Python script. Choosing python3 scope in the Syntax GUI.

print("Hello World!");

On executing we see the result in the bottom terminal in CherryTree…

Now left us view CherryTree from Subl.

In Cherrytree go to File > Document Path to Clipboard. Note that if filepath has spaces, wrap the filepath in quotes. This might be pasted into a top node for easy access to switch to Subl text.

We can now create another embedded CodeBox … syntax sh … Automatic Syntax Highlighting and … open captured CherryTree filepath in Subl.

subl “filepath” (in quotes)

Points to note.
First the CherryTree file must be scope (*.ctd). There are other scopes but only *.ctd is edited in Subl.
Second the Subl Package Exalt must be installed to recognise XML format. Whilst doing that, install at same time Actionscript3 since that syntax will be used in later examples with different buddy app.

Viewing the CherryTree instance we see that rich text and code boxes can be edited easily by ignoring the noise of coloured XML elements. But also the syntax within codeboxes, and there are many scopes which can be hacked (perhaps by adding Snippets) then saved and they can be run in the CherryTree instance. The two tools work together as buddies. The contents are synced between buddy instances

A neighbouring post for example asks about TOML support in Subl. It is in the long list of CherryTree scopes. So they can start in CherryTree as staging post but developed in Subl. Or vice versa. Expect other buddies to join the party.

0 Likes

#2

No interest in this mix it seems.
My second Buddy App installed and working is Recoll indexing engine.

https://www.recoll.org/pages/documentation.html

I have narrowed the search to
~/.config/sublime-text-3
and also
~/.config/albert/snippets (generates snippets on fly in parallel with Subl)
so that I can search by mimetype (extension) and/or content matches …sublime-snippet …
very powerful Buddy App. Locate any file.

P.S. I see hit count of sublime-snippet …

image

0 Likes