Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation scripts #8

Closed
PEZ opened this issue Apr 29, 2022 · 2 comments
Closed

Activation scripts #8

PEZ opened this issue Apr 29, 2022 · 2 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Apr 29, 2022

As a Joyrider I want to specify certain scripts to run when Joyride starts so that I can have a predictable startup baseline w/o having to manually run certain scripts in certain order.

This could be configurable in some different ways:

  • Two scripts: user and workspace
  • Two lists of scripts: user and workspace
  • A map: specifies both user and workspace lists of configs with some more richness than a mere script name. We would merge the maps in user-then-workspace setting order
  • ...

In all those cases it is important to keep in mind that in VS Code these settings can be specified in both User and Workspace, which adds configurability, but also is a Ux concern.

These scripts should get Joyride's extension context as one of their arguments.

There is also the option to use some file naming. convention. But I think I want explicit configs here. I lean towards the richer map alternative. At least I want to start with designing such an API and see if it seems nice and flexible enough.

Side note: Another feature idea is deactivation scripts.

@borkdude
Copy link
Collaborator

I would say this depends on #7 to be solved first. Another alternative may be to have a convention init.cljs in your workspace or user script dir that is automatically picked up.

@nixin72
Copy link

nixin72 commented May 6, 2022

I would personally prefer an entry point on startup like an init.cljs over a config file. Feels more appropriate here imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants