mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Add option to control compression modes
This commit is contained in:
@@ -84,7 +84,13 @@ func run_with_paths(cwd, home string, f func()) {
|
||||
f()
|
||||
}
|
||||
|
||||
func should_be_compressed(path string) bool {
|
||||
func should_be_compressed(path, strategy string) bool {
|
||||
if strategy == "always" {
|
||||
return true
|
||||
}
|
||||
if strategy == "never" {
|
||||
return false
|
||||
}
|
||||
ext := strings.ToLower(filepath.Ext(path))
|
||||
if ext != "" {
|
||||
switch ext[1:] {
|
||||
|
||||
Reference in New Issue
Block a user