Skip to content

Make LayoutCommands callables without prompting the user #86

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kl0tl
Copy link
Contributor

@kl0tl kl0tl commented Jun 28, 2015

This allows to call save_layout, restore_layout, remove_layout and new_window_from_saved_layout with a nickname argument to execute the command without asking the user for it. Useful to trigger those commands programmatically.

There is a bit of refactor involved to extract the common code between those commands into a LayoutCommand base class. It makes the derived commands much more lean but I could revert those changes if you find it’s too much.

@adzenith
Copy link
Member

I need to test this at some point. It looks good from skimming it.

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