-
Notifications
You must be signed in to change notification settings - Fork 43
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
[feature request] launch application windows in vtm desktop through command line #544
Comments
Thanks for the great idea. I'll add this option. |
I'll try to use Application Scripting Runtime from #393 without external interpreters for now. vtm monitor (vtm -m) or server in interactive mode (vtm -s) will read their input line by line and execute it. List of commands
UsageRedirected input:
Interactively:
|
It seems to me that there is no need to use the
|
It remains to add synchronization of environment vars and the current directory. |
The syntax needs to be changed, since too many parameters are expected for vtm functions. |
I want to make the new syntax the same as in <menu\item ...> in settings.xml:
|
I decided not to use $0 in this context:
|
I think you can test this feature. 😉 |
I added a new option - the 'cfg=' tag - with it you can set the configuration in xml-format for dtvt-apps:
|
Can I set By the way, |
In the current implementation, the 'id=' tag is completely ignored, it is replaced by the entire command expression, i.e. 'id=vtm.run(...)'. I need to figure out how to integrate it into the existing menu configuration. A possible way is to take an existing menu item by id and launch a derived instance based on it.
The executable file does not support DirectVT, and then something goes wrong there. I'll fix this bug and make it closeable. Thanks for testing. |
I have implemented the following logic to use the 'id' tag. If a menu item configuration with the specified 'id' already exists and it was created at desktop startup, then the launched window instance will inherit the existing configuration. Otherwise, it will be overwritten before starting a new window instance while preserving the existing windows in the group. Now you can set id in the vtm.run command to categorize app windows in the task bar. |
… in default config on Windows
Adding splitters to the taskbar menu does not work yet. |
Run vtm desktop with custom menu from bash:
|
Another syntax (need to implement
|
It is necessary to add the ability to invoke several expressions separated by punctuation (
|
I think that at this stage the added functionality is enough. We will return to this issue later when we fully implement integration with external scripting engines. |
For now, clicking on the taskbar seems to be the only way to launch a new application window on the
vtm
desktop.Is it possible to start up new app windows from the command line? For example, run
vtm -w vtm -r term vim ~/.bashrc
in bash will launch a new window with~/.bashrc
opened invim
.In this way, I can startup multiple text editors in separate windows from one shell, and edit files without blocking the original shell (just like
notepad .\mytext.txt
in windows). With the help of some helper scripts, I can also accomplish some useful features, like double-click to open/preview a file in a new window.The text was updated successfully, but these errors were encountered: