mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-16 06:46:09 +00:00
gtk(command_palette): filter out certain actions
This commit is contained in:
@@ -102,6 +102,16 @@ pub fn updateConfig(self: *CommandPalette, config: *const configpkg.Config) !voi
|
|||||||
|
|
||||||
// TODO: Allow user-configured palette entries
|
// TODO: Allow user-configured palette entries
|
||||||
for (inputpkg.command.defaults) |command| {
|
for (inputpkg.command.defaults) |command| {
|
||||||
|
// Filter out actions that are not implemented
|
||||||
|
// or don't make sense for GTK
|
||||||
|
switch (command.action) {
|
||||||
|
.close_all_windows,
|
||||||
|
.toggle_secure_input,
|
||||||
|
=> continue,
|
||||||
|
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
const cmd = try Command.new(
|
const cmd = try Command.new(
|
||||||
self.arena.allocator(),
|
self.arena.allocator(),
|
||||||
command,
|
command,
|
||||||
|
Reference in New Issue
Block a user