komorebi-application-specific-configuration icon indicating copy to clipboard operation
komorebi-application-specific-configuration copied to clipboard

Exclude some dialog windows for Fork.exe

Open Stephanvs opened this issue 6 months ago • 2 comments

Hi there!

Foremost, thanks for the great Komorebi program, I just started using it and already very happy with it.

I've observed that the Git GUI program I use, Fork, displays dialog windows for certain actions. Ideally, these should be floating and not integrated into the tiling layout. I attempted to add the necessary configurations to the application.yaml file and refreshed my settings, but it appears to have had no effect.

- name: Fork
  identifier:
    kind: Exe
    id: Fork.exe
    matching_strategy: Equals
  float_identifiers:
  - kind: Title
    id: Discard changes
    matching_strategy: Equals

Here's some more diagnostic information:

 [➜] ~
 ››› komorebic visible-windows
{
  "GSM5B09-5&9248f87&0&UID41217": [
    {
      "title": "Fork - Repo Two",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;cd995b6c-b015-4567-9f91-cf5e1358b52e]"
    },
    {
      "title": "Discard changes",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;08d51df5-38e9-43c9-b518-1d78d3ec6f6b]"
    },
    {
      "title": "pwsh :: steph",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    }
  ]
}
 [➜]  ~
 ››› komorebic visible-windows
{
  "GSM5B09-5&9248f87&0&UID41217": [
    {
      "title": "Fork - Repo One",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;cd995b6c-b015-4567-9f91-cf5e1358b52e]"
    },
    {
      "title": "Discard changes",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;95be9771-b71a-4833-bc63-08810074054e]"
    },
    {
      "title": "pwsh :: steph",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    }
  ]
}
 [➜]  ~
 ››› komorebic visible-windows
{
  "GSM5B09-5&9248f87&0&UID41217": [
    {
      "title": "Fork - ProSim",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;cd995b6c-b015-4567-9f91-cf5e1358b52e]"
    },
    {
      "title": "Push",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;347e4936-5c79-4c43-bb10-c623bed45f16]"
    },
    {
      "title": "pwsh :: steph",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    }
  ]
}

So there are a couple dialog windows that I'd like to show as floating, which are these:

    {
      "title": "Discard changes",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;95be9771-b71a-4833-bc63-08810074054e]"
    },

and

    {
      "title": "Push",
      "exe": "Fork.exe",
      "class": "HwndWrapper[Fork.exe;;347e4936-5c79-4c43-bb10-c623bed45f16]"
    },

Could you help me configure these, and I'd be happy to help debugging and providing a PR eventually.

Version info

komorebic 0.1.28
tag:v0.1.28
commit_hash:0cdce8fc
build_time:2024-07-15 16:06:31 +00:00
build_env:rustc 1.79.0 (129f3b996 2024-06-10),stable-x86_64-pc-windows-msvc

Stephanvs avatar Aug 13 '24 11:08 Stephanvs