Misc cleanup and documentation update
This commit is contained in:
parent
00f001729b
commit
419793c0b9
@ -171,11 +171,11 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Joel Torstensson
|
* Joel Torstensson
|
||||||
* Patric Schmitz
|
* Patric Schmitz
|
||||||
* Tarcisio Fedrizzi
|
* Tarcisio Fedrizzi
|
||||||
|
* Jay Kamat
|
||||||
* Claude
|
* Claude
|
||||||
* Fritz Reichwald
|
* Fritz Reichwald
|
||||||
* Corentin Julé
|
* Corentin Julé
|
||||||
* meles5
|
* meles5
|
||||||
* Jay Kamat
|
|
||||||
* Philipp Hansch
|
* Philipp Hansch
|
||||||
* Panagiotis Ktistakis
|
* Panagiotis Ktistakis
|
||||||
* Artur Shaik
|
* Artur Shaik
|
||||||
|
@ -907,6 +907,8 @@ Close all tabs except for the current one.
|
|||||||
=== tab-pin
|
=== tab-pin
|
||||||
Pin/Unpin the current/[count]th tab.
|
Pin/Unpin the current/[count]th tab.
|
||||||
|
|
||||||
|
Pinning a tab shrinks it to tabs->pinned-width size. Attempting to close a pinned tab will cause a confirmation, unless --force is passed.
|
||||||
|
|
||||||
==== count
|
==== count
|
||||||
The tab index to pin or unpin
|
The tab index to pin or unpin
|
||||||
|
|
||||||
|
@ -261,6 +261,10 @@ class CommandDispatcher:
|
|||||||
def tab_pin(self, count=None):
|
def tab_pin(self, count=None):
|
||||||
"""Pin/Unpin the current/[count]th tab.
|
"""Pin/Unpin the current/[count]th tab.
|
||||||
|
|
||||||
|
Pinning a tab shrinks it to tabs->pinned-width size.
|
||||||
|
Attempting to close a pinned tab will cause a confirmation,
|
||||||
|
unless --force is passed.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
count: The tab index to pin or unpin, or None
|
count: The tab index to pin or unpin, or None
|
||||||
"""
|
"""
|
||||||
@ -473,7 +477,6 @@ class CommandDispatcher:
|
|||||||
"""
|
"""
|
||||||
cmdutils.check_exclusive((bg, window), 'bw')
|
cmdutils.check_exclusive((bg, window), 'bw')
|
||||||
curtab = self._current_widget()
|
curtab = self._current_widget()
|
||||||
pinned = curtab.data.pinned
|
|
||||||
cur_title = self._tabbed_browser.page_title(self._current_index())
|
cur_title = self._tabbed_browser.page_title(self._current_index())
|
||||||
try:
|
try:
|
||||||
history = curtab.history.serialize()
|
history = curtab.history.serialize()
|
||||||
@ -500,7 +503,7 @@ class CommandDispatcher:
|
|||||||
newtab.data.keep_icon = True
|
newtab.data.keep_icon = True
|
||||||
newtab.history.deserialize(history)
|
newtab.history.deserialize(history)
|
||||||
newtab.zoom.set_factor(curtab.zoom.factor())
|
newtab.zoom.set_factor(curtab.zoom.factor())
|
||||||
new_tabbed_browser.set_tab_pinned(idx, pinned)
|
new_tabbed_browser.set_tab_pinned(idx, curtab.data.pinned)
|
||||||
return newtab
|
return newtab
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', scope='window')
|
@cmdutils.register(instance='command-dispatcher', scope='window')
|
||||||
|
Loading…
Reference in New Issue
Block a user