When dropping URLs/files onto kitty at a shell prompt insert them appropriately quoted and space separated

This commit is contained in:
Kovid Goyal
2022-02-25 10:30:15 +05:30
parent 6689d312a3
commit a8826f0d02
3 changed files with 14 additions and 2 deletions

View File

@@ -520,9 +520,13 @@ class Window:
def current_colors(self) -> Dict[str, Optional[int]]:
return self.screen.color_profile.as_dict()
@property
def at_prompt(self) -> bool:
return self.screen.cursor_at_prompt()
@property
def has_running_program(self) -> bool:
return not self.screen.cursor_at_prompt()
return not self.at_prompt
def matches(self, field: str, pat: MatchPatternType) -> bool:
if not pat: