eerohele / Tutkain

A Sublime Text package for interactive Clojure development
https://tutkain.flowthing.me
Other
68 stars 8 forks source link

Allow user to run command automatically after connecting #89

Closed eerohele closed 2 years ago

eerohele commented 2 years ago

Maybe add then param to tutkain_connect? To run multiple commands, you could use chain.

eerohele commented 2 years ago

Could maybe look something like this:

    {
        "keys": ["ctrl+c", "ctrl+x"],
        "command": "tutkain_connect",
        "args": {
            "host": "localhost",
            "output": "panel",
            "then": {
                "command": "tutkain_evaluate",
                "args": {"code": "(set! *print-length* 16)"}
            }
        }
    },
eerohele commented 2 years ago

Use the init arg to tutkain_connect.