#plugins.finder.window

Handy tools for Windows Management in macOS.

Inspired by WinWin for Hammerspoon.


#API Overview

Variables - Configurable values

Functions - API calls offered directly by the extension


#API Documentation

#Variables

Signatureplugins.finder.window.gridparts
TypeVariable
DescriptionAn integer specifying how many gridparts the screen should be divided into. Defaults to 30.
NotesNone
Sourcesrc/plugins/finder/window/window.lua line 72

#Functions

Signatureplugins.finder.window.centerCursor() -> nil
TypeFunction
DescriptionCenter the cursor on the focused window.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 42

Signatureplugins.finder.window.grid() -> nil
TypeFunction
DescriptionShows a modal keyboard driven interface for interactive window resizing.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 16

Signatureplugins.finder.window.hints() -> nil
TypeFunction
DescriptionDisplays a keyboard hint for switching focus to each window.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 29

Signatureplugins.finder.window.moveAndResize(option)
TypeFunction
DescriptionMove and resize the focused window.
Parameters
  • option - A string specifying the option, valid strings are: halfleft, halfright, halfup, halfdown, cornerNW, cornerSW, cornerNE, cornerSE, center, fullscreen, expand, shrink.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 182

Signatureplugins.finder.window.moveToScreen(direction)
TypeFunction
DescriptionMove the focused window between all of the screens in the direction.
Parameters
  • direction - A string specifying the direction, valid strings are: left, right, up, down, next.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 237

Signatureplugins.finder.window.stepMove(direction)
TypeFunction
DescriptionMove the focused window in the direction by one step. The step scale equals to the width/height of one gridpart.
Parameters
  • direction - A string specifying the direction, valid strings are: left, right, up, down.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 77

Signatureplugins.finder.window.stepResize(direction)
TypeFunction
DescriptionResize the focused window in the direction by on step.
Parameters
  • direction - A string specifying the direction, valid strings are: left, right, up, down.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 128

Signatureplugins.finder.window.undo()
TypeFunction
DescriptionUndo the last window manipulation. Only those "moveAndResize" manipulations can be undone.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/finder/window/window.lua line 106