armindarvish / consult-omni

A Powerful Versatile Omni Search inside Emacs
https://github.com/armindarvish/consult-omni/tree/main
165 stars 4 forks source link

List windows apps #35

Open ahmed-shariff opened 3 days ago

ahmed-shariff commented 3 days ago

Love the package! I use emacs on Windows a lot. I have the following to be able to use the "Apps" sources on Windows:

  (when (eq system-type 'windows-nt)
    (setq consult-omni-apps-paths (-non-nil
                                   (append (list (file-truename "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs"))
                                           (f-directories (file-truename "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs") nil t)
                                           (-map #'file-truename (s-split ";" (getenv "path")))))
          consult-omni-apps-regexp-pattern "\\(.*\\.exe$\\|.*\\.lnk$\\)"
          consult-omni-apps-open-command-args "start"))

If this is something you'd be interested in adding to the package, I can submit a PR for it.

ahmed-shariff commented 3 days ago

Well, it doesn't always work....... I'll keep iterating on this and leave this here for now.