On Wed, Jun 06 2012 (16:53), York Zhao <
gtdplatform-Re5JQ...@public.gmane.org> wrote:
> This used to be working in "anything", I don't understand why it gets
> changed in "helm" and if you don't want to change this behavior back
> can you please tell me how I can customize it to suit my requirement?
This is a more recent change than anything -> helm, but this bothered me
for a while as well, the problem is the match definition here:
(defvar helm-c-source-recentf
`((name . "Recentf")
(init . (lambda ()
(require 'recentf)
(or recentf-mode (recentf-mode 1))))
(candidates . recentf-list)
(keymap . ,helm-generic-files-map)
(help-message . helm-generic-file-help-message)
(mode-line . helm-generic-file-mode-line-string)
(match helm-c-match-on-basename)
(type . file))
"See (info \"(emacs)File Conveniences\").
Set `recentf-max-saved-items' to a bigger value if default is too small.")
to match on the whole filename again you can use
(setcdr (assoc 'match helm-c-source-recentf) 'helm-c-match-on-file-name)
For locate `helm-ff-transformer-show-only-basename' is relevant
(setq helm-ff-transformer-show-only-basename nil)
I'd consider the inconsistency in the recentf source a bug, and think
removing the match clause a better way.
I think changing the default of `helm-ff-transformer-show-only-basename`
to nil is also a useful change. What do you think?
Michael