tabby icon indicating copy to clipboard operation
tabby copied to clipboard

Why not just give me a default shell terminal tab ?

Open iahu opened this issue 3 years ago • 6 comments

Firstly, I have turn on auto-open a terminal on start option, but aways not see a terminal at all.

And, I think mostly use case is open Tabby to use the default shell terminal, why open the startup selection page for me, please give me an option to just open a terminal on start.

Thanks.

iahu avatar Aug 30 '21 02:08 iahu

If you don't get a terminal on start with "auto-open on start" enabled, please capture DevTools console logs at the time of the issue: https://github.com/Eugeny/terminus/wiki/Debug-logs

GitHub
A terminal for a more modern age (formerly Terminus) - Debug logs · Eugeny/tabby Wiki

Eugeny avatar Aug 30 '21 06:08 Eugeny

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks unless you comment. Thank you for your contributions.

stale[bot] avatar Apr 17 '22 10:04 stale[bot]

This is still an issue in 2023 at least on macOS.. conditions to reproduce:

  • User has closed a tab - common habit from Terminal.app to Cmd-W - and is back on default splash page instead
  • User closes the window but doesn't close the application (macOS habits shining through)
  • User clicks to open a new Tabby window - lands on default splash page - is forced to open a new tab (disruptive to flow)

Auto-open on start only works when you're starting the application cold (app fully terminated) There is the option of restoring tabs upon open, but that's negated

If there was a behavioural option to 1) close the application window if no tabs are open & 2) always open a tab upon window creation if no tabs exist (or no tabs to restore), it could improve the flow on macOS significantly.

ozskywalker avatar Mar 24 '23 15:03 ozskywalker

@Eugeny do you do reviews before PR submissions, or only on PR's?

https://github.com/Eugeny/tabby/compare/master...ozskywalker:tabby:feature-start-new-terminal-on-empty-launch

Wrote a solution that launches a new tab if there's no tabs open/no tabs to recover, based on the last used profile.

Trying to follow convention but may be missing something, would appreciate feedback so I can improve quality.

ozskywalker avatar Apr 04 '23 06:04 ozskywalker

@ozskywalker couple of things:

  • You should only do it in secondary windows (!this.bootstrapData.isMainWindow), then you can be sure that there are no CLI calls (tabby open / tabby run) that will collide with your logic and no tab recovery happening
  • Do it in TabbyLocalModule instead, where you can use TerminalService (like in https://github.com/Eugeny/tabby/blob/master/tabby-local/src/cli.ts#L120)
  • IMO there's no need for a separate option, you can reuse terminal.autoOpen
GitHub
A terminal for a more modern age. Contribute to Eugeny/tabby development by creating an account on GitHub.

Eugeny avatar Apr 04 '23 07:04 Eugeny

Thanks Eugeny - will check it out!

ozskywalker avatar Apr 05 '23 20:04 ozskywalker

Is there a way to configure new windows to automatically start a terminal rather than showing the start up screen? image

I have Tabby set to start a shell on launch. That works fine. But wondering if it is simple to also have new windows auto start your default profile. It is not to bad just need to control-shift-t to make a tab. But wondering?

henri avatar May 19 '23 00:05 henri