Skip to content

counsel-find-file-at-point now requires hitting M-n after C-x C-f #515

@kaushalmodi

Description

@kaushalmodi

Hi,

After the recent commit ( 8c7a7fc ), the counsel-find-file-at-point behavior stopped working like before.

Now for the "ffap" feature to work, I need to do C-x C-f followed by M-n. Earlier that M-n step was not required.

I tested it in emacs -Q by just adding the required Melpa installed packages to the load path

(progn
  (add-to-list 'load-path "/home/kmodi/.emacs.d/elpa_25_0/swiper-20160510.2311/")
  (add-to-list 'load-path "/home/kmodi/.emacs.d/elpa_25_0/counsel-20160519.744/")
  (add-to-list 'load-path "/home/kmodi/.emacs.d/elpa_25_0/ivy-20160520.218/")

  (require 'counsel)
  (setq counsel-find-file-at-point t)
  (global-set-key (kbd "C-x C-f") #'counsel-find-file))

Reverting this commit fixes this for me.

So the fix is to add ffap-guesser's output to initial-input instead of to preselect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions