code: def whitespace_before_cursor_on_line():
      
      b = get_app().current_buffer
      before_cursor = b.document.current_line_before_cursor
  
      return bool(not before_cursor or before_cursor[-1].isspace())
docs: Filter which evaluates to True when the characters before the cursor are
      whitespace, or we are at the start of te line.