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

Add a 'splitPane' ShortcutAction #3722

Merged
merged 7 commits into from
Nov 28, 2019
Merged

Conversation

zadjii-msft
Copy link
Member

Summary of the Pull Request

We already have "splitHorizontal" and "splitVertical", but those will both be deprecated in favor of "splitPane" with arguments.

Currently, there's one argument: "style", which is one of "vertical" or "horizontal."

References

This is being done in pursuit of supporting #607 and #998. I don't really want to lob #998 in with this one, since both that and this are hefty enough PRs even as they are. (I have a branch for #998, but it needs this first)

This will probably conflict with #3658

PR Checklist

Validation Steps Performed

Added new keybindings with the args - works
Tried the old keybindings without the args - still works

@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal. labels Nov 26, 2019
@zadjii-msft zadjii-msft added this to the Terminal-1912 milestone Nov 26, 2019
src/cascadia/TerminalApp/ActionArgs.h Outdated Show resolved Hide resolved
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

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

Minor stuff that should be fixed but won't take too long.

src/cascadia/TerminalApp/TerminalPage.cpp Outdated Show resolved Hide resolved
src/cascadia/TerminalApp/AppKeyBindingsSerialization.cpp Outdated Show resolved Hide resolved
doc/cascadia/profiles.schema.json Outdated Show resolved Hide resolved
src/cascadia/TerminalApp/ActionArgs.h Outdated Show resolved Hide resolved
const std::string bindings0String{ R"([
{ "command": "splitVertical", "keys": ["ctrl+a"] },
{ "command": "splitHorizontal", "keys": ["ctrl+b"] },
{ "command": { "action": "splitPane", "split": null }, "keys": ["ctrl+c"] },
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, what does this do when you have split = null?

Copy link
Member

Choose a reason for hiding this comment

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

Is this just for warnings?

Copy link
Member Author

Choose a reason for hiding this comment

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

split=null will default to SplitState::None which actually does nothing. There's another issues laying around for validating that keybindings have args with actual reasonable values and warning if you don't

…ane-action

# Conflicts:
#	src/cascadia/TerminalApp/AppKeyBindings.cpp
#	src/cascadia/TerminalApp/AppKeyBindings.h
#	src/cascadia/TerminalApp/AppKeyBindings.idl
#	src/cascadia/TerminalApp/TerminalPage.cpp
@zadjii-msft zadjii-msft merged commit eed351e into master Nov 28, 2019
@ghost
Copy link

ghost commented Jan 14, 2020

🎉Windows Terminal Preview v0.8.10091.0 has been released which incorporates this pull request.:tada:

Handy links:

@zadjii-msft zadjii-msft deleted the dev/migrie/f/splitPane-action branch January 31, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants