raboof/volare
6
22
Fork
You've already forked volare
2

tagging #5

Closed
opened 2022年10月31日 12:29:49 +01:00 by raboof · 3 comments

mod+t to tag windows, mod+n to move all tagged windows to the current frame

mod+t to tag windows, mod+n to move all tagged windows to the current frame
Collaborator
Copy link

I have this sort of working. It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window. And it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the _ATTACH_ mark on. But it seems to work well enough for moving a window between containers in a Notion-like way.

 # Tag the currently focused window. Untags any previously tagged window.
 bindsym $mod+t mark --toggle "TAG"
 # Move the previously tagged window to the currently focused container.
 bindsym $mod+n \
 mark --add "_ATTACH_"; \
 [con_mark="TAG"] focus, move window to mark "_ATTACH_"; \
 [con_mark="_ATTACH_"] focus, unmark "_ATTACH_"; \
 [con_mark="TAG"] focus, unmark "TAG"
I have this sort of working. It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window. And it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the `_ATTACH_` mark on. But it seems to work well enough for moving a window between containers in a Notion-like way. ``` # Tag the currently focused window. Untags any previously tagged window. bindsym $mod+t mark --toggle "TAG" # Move the previously tagged window to the currently focused container. bindsym $mod+n \ mark --add "_ATTACH_"; \ [con_mark="TAG"] focus, move window to mark "_ATTACH_"; \ [con_mark="_ATTACH_"] focus, unmark "_ATTACH_"; \ [con_mark="TAG"] focus, unmark "TAG" ```
Author
Owner
Copy link

It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window

That seems like a totally reasonable limitation

it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the ATTACH mark on

That's unfortunate, might be something to revisit later

But it seems to work well enough for moving a window between containers in a Notion-like way.

Yeah, sounds great, I'll try to test and commit it soon!

> It can only tag a single window since it uses sway's marks and a mark uniquely identifies a single window That seems like a totally reasonable limitation > it doesn't work for moving a window into an empty workspace since there has to be an existing window to scribble the _ATTACH_ mark on That's unfortunate, might be something to revisit later > But it seems to work well enough for moving a window between containers in a Notion-like way. Yeah, sounds great, I'll try to test and commit it soon!
Author
Owner
Copy link

Seems to work great, merged, thanks!

Seems to work great, merged, thanks!
Sign in to join this conversation.
No Branch/Tag specified
main
prepare-for-1.11
volare-1.10
multi-system
prepare-for-0.10
volare-1.9
fix-config-examples
prepare-for-1.9
rebase-on-1.9
volare-1.8.0.x
fix-ci
test
config
flake-enable-debugging
avoid_unsplit_crash
move
move-tab-config-syntax
move-tab
implement-unsplit
build-on-ci
versioning
sway-replacement-non-goal
document-branching-strategy
drop-issue-templates
look
wallpaper
renames
remove-toggle-split
update-to-1.8
update-to-1.8-branch-off-point
unsplit
second_test
v1.11.0.0
v1.10.1.0
1.10.1
1.10
1.10-rc4
1.10-rc3
1.10-rc2
1.10-rc1
v1.9.0.0
1.9
1.9-rc4
1.9-rc3
1.9-rc2
1.9-rc1
v1.8.1.0
1.8.1
1.8
1.8-rc4
1.8-rc3
1.8-rc2
1.8-rc1
1.7
1.7-rc3
1.7-rc2
1.7-rc1
1.6.1
1.6
1.6-rc3
1.6-rc2
1.6-rc1
1.5.1
1.5
v1.5-rc2
1.5-rc1
1.4
1.3-rc3
1.3-rc2
1.3-rc1
1.2
1.2-rc2
1.2-rc1
1.1.1
1.1
1.1-rc3
1.1-rc2
1.1-rc1
1.0
1.0-rc5
1.0-rc4
1.0-rc3
1.0-rc2
1.0-rc1
1.0-beta.2
1.0-beta.1
1.0-alpha.6
1.0-alpha.5
1.0-alpha.4
1.0-alpha.3
1.0-alpha.2
1.0-alpha.1
0.15-rc1
0.14-rc1
0.13-rc1
0.12-rc1
0.11
0.11-rc3
0.11-rc2
0.11-rc1
0.10-rc1
0.9
0.9-rc3
0.9-rc2
0.9-rc1
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
raboof/volare#5
Reference in a new issue
raboof/volare
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?