-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add Interactivity package #8922
Conversation
Not gonna lie, that looks good (lgtm). I think the configuration is a bit awkward. E.g. you have
and I wonder why that isn't just a mapping |
Ah, the entry here, add it sorted case-insensitive. |
@kaste I'm glad that you liked the package. I made changes to settings management as you suggested. Regarding For interacting with Node, please try these settings: {
"append_output": "",
"environment_variables": {},
"lines_to_suppress": 2,
"output_filter": "^>\\s(?:\\.\\.\\.\\s)*",
"prepend_output": " ",
"shell": "node",
"shell_params": [
"-i"
],
"shutdown_commands": ".exit",
"startup_commands": "",
"text_shortcuts": {
"@": "##param##"
}
} If you want to add custom functions in Python, please follow these steps. I'd be glad if you commit any useful modules for Node as well. |
Ok, I see, you basically have to decide which language process you're gonna use, and replace most of the settings. My initial understanding was that you can have commands targeting different "shells"/servers at the same time. So as I understand it, it could also be
and then you choose which one you use. Maybe it would be useful to restrict these to some view. Basically the user would specify a syntax/scope for which these "commands"/expansions are enabled. Take this as random notes how I understand the package. The following two changes are required though:
|
@kaste thank you for sharing your ideas! I didn't want to overload the plugin too much, but I like your idea of accessing different shells simultaneously. I will consider this functionality for future releases. I've added all the necessary files to my repository. |
Check the sorting. #8922 (comment) |
@kaste, it looks like I'm missing something here. Could you please tell me more about what exactly should be sorted case-insensitively? |
Then entries in |
@kaste, got it, thanks! Done. |
@braver I think that LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: WARNING
Repo link: Interactivity
Results help
Packages added:
- Interactivity
Processing package "Interactivity"
- WARNING: '.no-sublime-package' is defined. Please verify that it is *really* necessary
@kaste , thanks, your help here is really appreciated 👍🏻 |
My package is Interactivity.
This plugin allows you to run shell commands and scripts directly within the editor, providing their output right alongside your written content, making your workflow more dynamic and interactive.