text: from talon import Context, actions
  ctx = Context()
  ctx.matches = r"""
  os: linux
  """
  
  @ctx.action_class('app')
  class AppActions:
      def tab_close():
          actions.key('ctrl-w')
          #action(app.tab_detach):
          #  Move the current tab to a new window
      def tab_next():
          actions.key('ctrl-tab')
      def tab_open():
          actions.key('ctrl-t')
      def tab_previous():
          actions.key('ctrl-shift-tab')
      def tab_reopen():
          actions.key('ctrl-shift-t')
      def window_close():
          actions.key('ctrl-q')
      def window_hide():
          actions.key('alt-space n')
          #requires easy window switcher or equivalent (built into most Linux)
      def window_next():
          actions.key('alt-`')
      def window_open():
          actions.key('ctrl-n')
          #requires easy window switcher or equivalent (built into most Linux)
      def window_previous():
          actions.key('alt-shift-`')
  