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

Web browser like tabs #467

Merged
merged 3 commits into from
Jul 31, 2019

Conversation

maxhora
Copy link
Collaborator

@maxhora maxhora commented Jul 30, 2019

Related to https://github.com/jumptrading/FluentTerminal/issues/109

  • TabBar.xaml extended to support tabs drag and drop events to allow tabs dropping to another window or to tear off tab and create new window.
  • Pause and resume TerminalSession's std output reading while xterm.js is not listening.
  • Enable AlwaysShowTabs Settings option by default.

Known issue to be addressed in next step:
Not whole state of xterm.js is restored on drop of tab for restored buffer content (but new received terminal session is displaying fine).

@@ -95,5 +97,44 @@ private void UpdateLayoutMetrics()
PropertyChanged(this, new PropertyChangedEventArgs(nameof(CoreTitleBarPadding)));
}
}

private void TabView_TabDraggedOutside(object sender, Microsoft.Toolkit.Uwp.UI.Controls.TabDraggedOutsideEventArgs e)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover of TabView?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, sorry, good catch!
TabView worked pretty well except that it doesn't provide a template to customize whole tab header area for specific state (hovered, pressed, etc) and option to display tabs headers at the bottom of page. To have that desired customization it seems it's needed to redefine too much functionality of TabView's high level templates.

@felixse
Copy link
Owner

felixse commented Jul 31, 2019

Awesome 👍

@felixse felixse merged commit 8b18773 into felixse:master Jul 31, 2019
maxhora added a commit to maxhora/FluentTerminal that referenced this pull request Jul 31, 2019
* Web browser like tabs.

* Turn on AlwaysShowTabs by default.

* removed unused event handler
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

Successfully merging this pull request may close these issues.

2 participants