Open signmeuptwice opened 2 years ago
Hi! I'm having the same issue. My config looks like this:
Using Tabby 1.0.170.
Opening the tab works fine. After pressing Enter twice both commands get succesfully executed.
And this may be a bit offtopic but I haven't found any information about this: Is it possible to open a new Tab and split it? In Tabby you can split a Tab with "Ctrl+E" or "Ctrl+D". (So you got multiple Panes in a single Tab) It would be great if it's possible to create a workspace, with a single Tab and splitted horizontally/vertically. Thank you! Great Plugin so far!
Hi! I'm having the same issue. My config looks like this:
title: MyTitle color: '#03fccf' profile: MyProfile commands:
- ls
- ssh user@host.fqdn.com
Using Tabby 1.0.170.
Opening the tab works fine. After pressing Enter twice both commands get succesfully executed.
And this may be a bit offtopic but I haven't found any information about this: Is it possible to open a new Tab and split it? In Tabby you can split a Tab with "Ctrl+E" or "Ctrl+D". (So you got multiple Panes in a single Tab) It would be great if it's possible to create a workspace, with a single Tab and splitted horizontally/vertically. Thank you! Great Plugin so far!
I'm also looking for split tab functionality
Hi! I'm having the same issue. My config looks like this:
title: MyTitle color: '#03fccf' profile: MyProfile commands:
- ls
- ssh user@host.fqdn.com
Using Tabby 1.0.170.
Opening the tab works fine. After pressing Enter twice both commands get succesfully executed.
And this may be a bit offtopic but I haven't found any information about this: Is it possible to open a new Tab and split it? In Tabby you can split a Tab with "Ctrl+E" or "Ctrl+D". (So you got multiple Panes in a single Tab) It would be great if it's possible to create a workspace, with a single Tab and splitted horizontally/vertically. Thank you! Great Plugin so far!
Amazing tool overall, but having the same issue as mentioned above. The newly opened workspaces require the ENTER key to load all the commands and the tab name defined in the config. Thank you for this amazing plugin, and please fix this when you can!
I have this issue too and it started happening while starting to use the plugin on Ubuntu 22.04. I have been using the same workspace configs for months on Windows 10 without any issue.
After looking at the code, it seems that in the buildWorkspace
function, subscribing to activity$
does not trigger anything before any keyboard action on the current tab. I was looking at something like opened$
but it does not seem to exist in tabby-core. The focused$
event seems to be working, as long as we unsubscribe directly in the callback before setting the setTimeout. I did not test it on Windows though:
/**
* Description. Builds workspace based on a given configuration. Opens tabs and customises them using the given values
* @param config The workspace config.
*/
async buildWorkspace(config: TabConfig[]): Promise<void> {
if (config) {
const profiles = await this.profileService.getProfiles();
for (const element of config) {
const selectedProfile = this.findTerminalProfile(profiles, element);
const tab = (await this.profileService.openNewTabForProfile(
selectedProfile,
)) as BaseTerminalTabComponent;
const subscription = tab.focused$.subscribe(() => {
subscription.unsubscribe();
setTimeout(() => {
this.customizeTab(tab, element);
}, 50);
});
}
}
}
trying to have a workspave with this default directory tabs open but CD command not working
I have so many errors in the console... Not sure if related
I found that in fact it kind of works but I have to hit
ENTER
key in the tab for the cd command to execute. So 100% a bug here