code: def setup_common_actions(self):
          
          # Filters
          filters_action = create_action(self, _("Edit filename filters..."),
                                         None, ima.icon('filter'),
                                         triggered=self.edit_filter)
          # Show all files
          all_action = create_action(self, _("Show all files"),
                                     toggled=self.toggle_all)
          all_action.setChecked(self.show_all)
          self.toggle_all(self.show_all)
  
          # Show all files
          single_click_to_open = create_action(
              self,
              _("Single click to open"),
              toggled=self.set_single_click_to_open,
          )
          single_click_to_open.setChecked(self.single_click_to_open)
          return [filters_action, all_action, single_click_to_open]
docs: Setup context menu common actions