    ("f" ar/find-all-dired-current-dir "find all")
    ("q" nil "cancel")))
 
+(global-set-key
+ (kbd "C-c o")
+ (defhydra hydra-search (:color blue)
+   "open"
+   ("o" ar/open-in-external-app "externally")
+   ("p" ar/open-file-at-point "path at point")
+   ("q" nil "cancel")))
+
 ;; (global-set-key
 ;;  (kbd "C-c y")
 ;;  (defhydra hydra-root (:color blue)

       (file-name-directory fPath)))
    (message "File path copied: %s" fPath)))

(defun ar/open-file-at-cursor ()
  "Open the file path under cursor.
If there is text selection, uses the text selection for path.
If the path starts with “http://”, open the URL in browser.
Input path can be {relative, full path, URL}.

        (start-process "" nil "xdg-open" fPath))))))

;; Based on http://ergoemacs.org/emacs/emacs_dired_open_file_in_ext_apps.html
(defun ar/open-in-external-app ()
  "Open the current file or dired marked files in external app.
The app is chosen from your OS's preference.

