code: def setup_common_actions(self):
          
          actions = FilteredDirView.setup_common_actions(self)
  
          # Toggle horizontal scrollbar
          hscrollbar_action = create_action(self, _("Show horizontal scrollbar"),
                                            toggled=self.toggle_hscrollbar)
          hscrollbar_action.setChecked(self.show_hscrollbar)
          self.toggle_hscrollbar(self.show_hscrollbar)
  
          return actions + [hscrollbar_action]
docs: Setup context menu common actions