browson/nodeview.py
def jump_node(self, *, forwards: bool = False) -> None:
        """Move focus to the first/last line of the current (or parent) node.

        Jump to the first line representing the current node. If already at the
        first line, jump to the first line of the parent node. If 'forwards' is
        True, jump to the last line representing the current node (or parent
        node).
        """
        first, last = self.node_span()
        target = last if forwards else first
        current = self.lines[self.focus].node
        while self.focus == target:  # jump to parent instead
            parent = current.parent
            if parent is None:
                break
            first, last = self.node_span(self.focus, parent)
            target = last if forwards else first
            current = parent
        self.set_focus(target)
Move focus to the first/last line of the current (or parent) node.

        Jump to the first line representing the current node. If already at the
        first line, jump to the first line of the parent node. If 'forwards' is
        True, jump to the last line representing the current node (or parent
        node).
        
Move focus to the first/last line of the current (or parent) node.
Jump to the first line representing the current node. If already at the
first line, jump to the first line of the parent node. If 'forwards' is
True, jump to the last line representing the current node (or parent
node).
Move focus to the first / last line of the current ( or parent ) node . Jump to the first line representing the current node . If already at the first line jump to the first line of the parent node . If ' forwards ' is True jump to the last line representing the current node ( or parent node ) .
def jump_node(self, *, forwards: bool = False) -> None:
        first, last = self.node_span()
        target = last if forwards else first
        current = self.lines[self.focus].node
        while self.focus == target:  
            parent = current.parent
            if parent is None:
                break
            first, last = self.node_span(self.focus, parent)
            target = last if forwards else first
            current = parent
        self.set_focus(target)
def jump_node ( self , * , forwards : bool = False ) -> None : first , last = self . node_span ( ) target = last if forwards else first current = self . lines [ self . focus ] . node while self . focus == target : parent = current . parent if parent is None : break first , last = self . node_span ( self . focus , parent ) target = last if forwards else first current = parent self . set_focus ( target )
Move focus to the first/last line of the current (or parent) node.
Move focus to the first / last line of the current ( or parent ) node .
"""Move focus to the first/last line of the current (or parent) node.

        Jump to the first line representing the current node. If already at the
        first line, jump to the first line of the parent node. If 'forwards' is
        True, jump to the last line representing the current node (or parent
        node).
        """ # jump to parent instead
self
forwards
bool