-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename FloatingLayout to FloatingWindow, and FreeLayout to FloatingLa…
…yout (#961) **BREAKING CHANGE** This PR renames the following items: - `Whim.FloatingLayout` plugin to `Whim.FloatingWindow` - `Whim.FloatingLayout.FloatingLayoutEngine` to `Whim.FloatingWindow.ProxyFloatingLayoutEngine` - `Whim.FreeLayoutEngine` layout engine to `Whim.FloatingLayout` This is in preparation to share logic between the `FloatingWindow` plugin and the `FloatingLayout` layout engine. --------- Co-authored-by: Isaac Daly <isaac.daly@outlook.com>
- Loading branch information
Showing
37 changed files
with
433 additions
and
426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Floating Window Plugin | ||
|
||
The <xref:Whim.FloatingLayout.FloatingWindowPlugin> adds a `ProxyFloatingLayoutEngine` proxy engine to Whim. This adds the ability for windows to float outside of any other layouts. If you want to have a layout of free-floating windows, see the <xref:Whim.FloatingLayout.FloatingLayoutEngine>. | ||
|
||
The <xref:Whim.FloatingLayout.FloatingWindowPlugin> has no configuration options. | ||
|
||
![Floating window demo](../../images/floating-window-demo.gif) | ||
|
||
## Example Config | ||
|
||
```csharp | ||
#r "WHIM_PATH\whim.dll" | ||
#r "WHIM_PATH\plugins\Whim.FloatingLayout\Whim.FloatingLayout.dll" | ||
|
||
using Whim; | ||
using Whim.FloatingLayout; | ||
|
||
void DoConfig(IContext context) | ||
{ | ||
// ... | ||
FloatingWindowPlugin floatingWindowPlugin = new(context); | ||
context.PluginManager.AddPlugin(floatingWindowPlugin); | ||
|
||
// ... | ||
} | ||
|
||
return DoConfig; | ||
``` | ||
|
||
## Commands | ||
|
||
| Identifier | Title | Keybind | | ||
|------------------------------------------------| ----------------------- | ------------------------------------------------ | | ||
| `whim.floating_window.toggle_window_floating` | Toggle window floating | <kbd>Win</kbd> + <kbd>Shift</kbd> + <kbd>F</kbd> | | ||
| `whim.floating_window.mark_window_as_floating` | Mark window as floating | <kbd>Win</kbd> + <kbd>Shift</kbd> + <kbd>M</kbd> | | ||
| `whim.floating_window.mark_window_as_docked` | Mark window as docked | <kbd>Win</kbd> + <kbd>Shift</kbd> + <kbd>D</kbd> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
61 changes: 0 additions & 61 deletions
61
src/Whim.FloatingLayout.Tests/FloatingLayoutCommandsTests.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.