[off]sublimeText update
Ralf Bitter
rabit at revigniter.com
Tue Mar 26 09:28:14 EDT 2019
> On 13. Mar 2019, at 15:17, Mike Kerner via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> The ST kluge works great for updating scripts live in
> LC, except when it doesn't, and I don't think we have a way to do it with
> Atom, yet.
There are definitely ways to do it in Atom too.
Here is how I managed to send notifications to
a Levure application running in the LiveCode IDE
using Atom:
- Installed the atom-shell-commands package.
This is needed to call a shell script every time you
save a .livecodescript file in Atom.
- Wrote a LC script which is called by the atom-shell-commands
package. This script writes to the socket the Levure
script external_editor_server.livecodescript listens to.
- Configured atom-shell-commands (added arguments, a keymap
and the path to the shell script).
- That's it, works like a charm.
Note: Of course, you could use a modified version of the Python
script notify_levure_app_of_save.py included in Trevor's LC
Sublime Text package. But as I know nothing about Python I chose
the LC route and as a variant the PHP route.
You can find scripts and a configuration example here:
https://gist.github.com/revig
Note: There is a PHP version and a LC version. I you prefer to
use the LC shell script version you need the modified version of
external_editor_server.livecodescript.
This is because the LC version uses UDP sockets as there is an
issue with writing to sockets on LC server.
Ralf
More information about the use-livecode
mailing list