mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #2796 from anmolw/fish-completions-themes
Strip theme location in fish completions
This commit is contained in:
@ -53,7 +53,7 @@ fn writeFishCompletions(writer: anytype) !void {
|
|||||||
if (std.mem.startsWith(u8, field.name, "font-family"))
|
if (std.mem.startsWith(u8, field.name, "font-family"))
|
||||||
try writer.writeAll(" -f -a \"(ghostty +list-fonts | grep '^[A-Z]')\"")
|
try writer.writeAll(" -f -a \"(ghostty +list-fonts | grep '^[A-Z]')\"")
|
||||||
else if (std.mem.eql(u8, "theme", field.name))
|
else if (std.mem.eql(u8, "theme", field.name))
|
||||||
try writer.writeAll(" -f -a \"(ghostty +list-themes)\"")
|
try writer.writeAll(" -f -a \"(ghostty +list-themes | sed -E 's/^(.*) \\(.*\\$/\\1/')\"")
|
||||||
else if (std.mem.eql(u8, "working-directory", field.name))
|
else if (std.mem.eql(u8, "working-directory", field.name))
|
||||||
try writer.writeAll(" -f -k -a \"(__fish_complete_directories)\"")
|
try writer.writeAll(" -f -k -a \"(__fish_complete_directories)\"")
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user