punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

make helm / ivy usage configurable #179

Open andreas-h opened 6 years ago

andreas-h commented 6 years ago

Currently, when helm is installed, the travel functionality always uses helm instead of ivy. It would be nice if one could configure if one wants to use ivy or helm for traveling in case both are installed.

meliache commented 2 years ago

In my case, I just want to use the built-in read-file-name instead of the helm, ivy or ido, since I use selectrum which just extends the built-in completing-read functionality and everything around it. So far I just work around this by overriding ranger-travel like the following

  (defun meliache-ranger-travel ()
    "Open a file or go to a directory in current buffer.

Like ranger-travel, but use built-in`read-file-name' function instead of helm/ivy/ido"
    (interactive)
    (ranger-find-file (read-file-name "Travel: ")))

  (advice-add 'ranger-travel :override #'meliache-ranger-travel)