original_docstring: Preset a commandline text based on a hint URL.
docstring: Preset a commandline text based on a hint URL.
docstring_tokens: Preset a commandline text based on a hint URL .
code: def preset_cmd_text(self, url: QUrl, context: HintContext) -> None:
          """Preset a commandline text based on a hint URL."""
          flags = QUrl.FullyEncoded
          urlstr = url.toDisplayString(flags)  # type: ignore[arg-type]
          args = context.get_args(urlstr)
          text = ' '.join(args)
          if text[0] not in modeparsers.STARTCHARS:
              raise HintingError("Invalid command text '{}'.".format(text))
  
          cmd = objreg.get('status-command', scope='window', window=self._win_id)
          cmd.set_cmd_text(text)
code_tokens: def preset_cmd_text ( self , url : QUrl , context : HintContext ) -> None : flags = QUrl . FullyEncoded urlstr = url . toDisplayString ( flags ) args = context . get_args ( urlstr ) text = ' ' . join ( args ) if text [ 0 ] not in modeparsers . STARTCHARS : raise HintingError ( "Invalid command text '{}'." . format ( text ) ) cmd = objreg . get ( 'status-command' , scope = 'window' , window = self . _win_id ) cmd . set_cmd_text ( text )
short_docstring: Preset a commandline text based on a hint URL.
short_docstring_tokens: Preset a commandline text based on a hint URL .
comment: """Preset a commandline text based on a hint URL."""$SEP$# type: ignore[arg-type]