Added ability to toggle view visibility.
This commit is contained in:
@@ -18,4 +18,5 @@ def execute(
|
||||
):
|
||||
logger.debug("Command: Focus Left Sibling")
|
||||
if not view.sibling_left: return
|
||||
view.sibling_left.get_parent().show()
|
||||
view.sibling_left.grab_focus()
|
||||
|
||||
@@ -18,4 +18,5 @@ def execute(
|
||||
):
|
||||
logger.debug("Command: Focus Right Sibling")
|
||||
if not view.sibling_right: return
|
||||
view.sibling_right.get_parent().show()
|
||||
view.sibling_right.grab_focus()
|
||||
|
||||
@@ -23,6 +23,7 @@ def execute(
|
||||
popped_file, next_file = view.command.get_swap_file(view)
|
||||
|
||||
view.sibling_left.set_buffer(buffer)
|
||||
view.sibling_left.get_parent().show()
|
||||
view.sibling_left.grab_focus()
|
||||
|
||||
if next_file:
|
||||
|
||||
@@ -23,6 +23,7 @@ def execute(
|
||||
popped_file, next_file = view.command.get_swap_file(view)
|
||||
|
||||
view.sibling_right.set_buffer(buffer)
|
||||
view.sibling_right.get_parent().show()
|
||||
view.sibling_right.grab_focus()
|
||||
|
||||
if next_file:
|
||||
|
||||
@@ -87,6 +87,8 @@ class SourceViewsController(ControllerBase, list):
|
||||
def first_map_load(self):
|
||||
for source_view in self:
|
||||
source_view.command.exec("new_file")
|
||||
if not source_view.sibling_left: continue
|
||||
source_view.get_parent().hide()
|
||||
|
||||
source_view = self[0]
|
||||
source_view.grab_focus()
|
||||
|
||||
Reference in New Issue
Block a user