mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Also create an automatic text/plain alias when reading from clipboard
This commit is contained in:
@@ -171,6 +171,14 @@ func (self *Output) assign_mime_type(available_mimes []string, aliases map[strin
|
||||
}
|
||||
}
|
||||
}
|
||||
if strings.HasPrefix(self.mime_type, "text/") {
|
||||
for _, mt := range available_mimes {
|
||||
if mt == "text/plain" {
|
||||
self.remote_mime_type = mt
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
return fmt.Errorf("The MIME type %s for %s not available on the clipboard", self.mime_type, self.arg)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user