Origami icon indicating copy to clipboard operation
Origami copied to clipboard

Make `LayoutCommand`s callables without prompting the user

Open kl0tl opened this issue 10 years ago • 1 comments

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.

kl0tl avatar Jun 28 '15 15:06 kl0tl

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

adzenith avatar Jun 29 '15 18:06 adzenith