Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maxime Buquet
poezio
Commits
57cbbc1b
Commit
57cbbc1b
authored
Jun 24, 2020
by
Maxime Buquet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'reorder-gaptabs' into 'master'
Reorder gaptabs See merge request
poezio/poezio!146
parents
f9e2d24e
9b5ebbfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
CHANGELOG
CHANGELOG
+9
-0
plugins/reorder.py
plugins/reorder.py
+7
-4
No files found.
CHANGELOG
View file @
57cbbc1b
...
...
@@ -4,6 +4,15 @@ https://dev.louiz.org/projects/poezio/roadmap
* Poezio 0.14 - dev
# Minor Changes
- Reorder: Prevent GapTabs from being serialized and ignore when serialized as
they're recreated automatically.
# Bug fixes
- Reorder: Fix traceback on serialized gap tabs.
* Poezio 0.13.1
# Bug fixes
...
...
plugins/reorder.py
View file @
57cbbc1b
...
...
@@ -92,7 +92,11 @@ def parse_config(tab_config):
if
pos
in
result
or
pos
<=
0
:
return
None
typ
,
name
=
tab_config
.
get
(
option
,
default
=
':'
).
split
(
':'
,
maxsplit
=
1
)
spec
=
tab_config
.
get
(
option
,
default
=
':'
).
split
(
':'
,
maxsplit
=
1
)
# Gap tabs are recreated automatically if there's a gap in indices.
if
spec
==
'empty'
:
return
None
typ
,
name
=
spec
if
typ
not
in
TEXT_TO_TAB
:
return
None
result
[
pos
]
=
(
TEXT_TO_TAB
[
typ
],
name
)
...
...
@@ -113,9 +117,8 @@ def parse_runtime_tablist(tablist):
for
tab
in
tablist
[
1
:]:
i
+=
1
result
=
check_tab
(
tab
)
if
result
==
'empty'
:
props
.
append
((
i
,
'empty'
))
elif
result
:
# Don't serialize gap tabs as they're recreated automatically
if
result
!=
'empty'
:
props
.
append
((
i
,
'%s:%s'
%
(
result
,
tab
.
jid
.
full
)))
return
props
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment