Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
i3-woman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
i3-woman
Commits
ee26f7f3
Commit
ee26f7f3
authored
2 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Qt: Swap and move workspace by keyboard
parent
60079193
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
woman/help.py
+3
-0
3 additions, 0 deletions
woman/help.py
woman/qt.py
+13
-0
13 additions, 0 deletions
woman/qt.py
with
16 additions
and
0 deletions
woman/help.py
+
3
−
0
View file @
ee26f7f3
...
...
@@ -112,6 +112,9 @@ c<id>... - select container/window/workspace and ...
qy - quit window or all windows in container/workspace
kY - xkill window or all windows in container/workspace
e - expand container to parent container
s<id/workspace> - swap current workspace with window/container/workspace
d<workspace> - move current workspace to workspace
d<id><key> - move current workspace near to container (see `m`)
Shortcuts in search bar (input mode):
...
...
This diff is collapsed.
Click to expand it.
woman/qt.py
+
13
−
0
View file @
ee26f7f3
...
...
@@ -1266,6 +1266,19 @@ def qt_main():
raise
NoSutchKey
(
key
,
mod
)
else
:
raise
NoSutchKey
(
key
,
mod
)
elif
mod
==
0
and
key
==
ord
(
'
S
'
):
nd_from
=
self
.
focused_widget
with
nd_from
.
marked_context
(
QColor
(
255
,
0
,
0
)):
nd_to
=
await
get_container_or_workspace
()
if
isinstance
(
nd_to
,
WorkspaceWidget
):
nd_to
.
swap_with_workspace
(
nd_from
.
master
,
nd_from
.
slave
)
else
:
nd_from
.
move
(
nd_to
,
swap
=
True
)
self
.
load_i3_tree
()
elif
mod
==
0
and
key
==
ord
(
'
D
'
):
nd_from
=
self
.
focused_widget
with
nd_from
.
marked_context
(
QColor
(
255
,
0
,
0
)):
await
ck_move
(
nd_from
)
elif
mod
==
0
and
key
==
ord
(
'
R
'
):
# Undocumented
for
i
in
self
.
_workspaces
.
values
():
i
.
metadata_changed
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment