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

Adds Floating functionality to mjolnir.tiling #5

Merged
merged 1 commit into from
Nov 17, 2014
Merged

Conversation

csaunders
Copy link
Collaborator

This allows the user to specify if a window should or should not
be included in the tiling calculations and layouts.

Implements feature request #4

Here's a demo

Please review @nathankot

This allows the user to specify if a window should or should not
be included in the tiling calculations and layouts.
@@ -27,15 +44,7 @@ function tiling.cycle(direction)
local currentindex = fnutils.indexof(windows, win)
local layout = space.layout
if not currentindex then return end
local nextindex = currentindex + direction
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A lot of this could've been simplified by using modulo. Needed to add 1 because Lua arrays start at 1 not 0.

Copy link
Owner

Choose a reason for hiding this comment

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

Nice :)

@nathankot
Copy link
Owner

Looks good, thanks for this!!

nathankot added a commit that referenced this pull request Nov 17, 2014
Adds Floating functionality to mjolnir.tiling
@nathankot nathankot merged commit 89bcb24 into master Nov 17, 2014
@nathankot nathankot mentioned this pull request Nov 17, 2014
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.

None yet

2 participants