Skip to content

simp-project-find-file function #4

Closed
jxs opened this Issue Nov 5, 2012 · 9 comments

2 participants

@jxs
jxs commented Nov 5, 2012

hey , first of all simp is great!
this is not an issue, rather a feature request for the fuzzy search on the find file function
could you make the search so that for example when searching for dir/models.py in the project, typing dirmodelspy , or dir modelspy, models.py still shows?
tnhx and lot!

@re5et
Owner
re5et commented Nov 5, 2012

You can already do this by customizing the variable simp-completing-read-command. This allows you to use the completion mechanism of choice, and that is where you will get your fuzzy finding. You might try out ido-completing-read and customize ido a bit to do the fuzzy finding.

@re5et
Owner
re5et commented Nov 13, 2012

I am going to close this, feel free to re-open if you need anymore help.

@re5et re5et closed this Nov 13, 2012
@jxs
jxs commented Jan 6, 2013

hey there again
i have managed to improve the search by customizing ido with
(setq ido-enable-flex-matching t) and it's perfect,
but now emacs crashes on large repos
my simp config is

(require 'simp)
(simp-project-define
'(:has (.git)
:ignore (.git)))
any sugestion?
tnhx!

@re5et
Owner
re5et commented Jan 6, 2013

This is an issue with ido-flex-matching performance. It is fixed by this:

emacsmirror/emacs@9e77b8e

It is not in an official release yet, but will be soon.

Until then, you could build Emacs from source based on the latest code, or you could replace your local copy of ido with https://github.com/emacsmirror/emacs/blob/master/lisp/ido.el

@jxs
jxs commented Jan 7, 2013

where does emacs place the native modes? i found /usr/share/emacs/24.1/share/emacs/24.1/lisp/ido.el.gz but that's not it

tnhx

@re5et
Owner
re5et commented Jan 7, 2013

If you M-x describe-function RET ido-mode RET should show you a link to the exact file it was sourced from.

@jxs
jxs commented Jan 7, 2013

that's what i did, C-h f ido-mode RET, and it showed me that location but i change it and nothing happens.
also even if i delete emacs and ido-mode still work

@re5et
Owner
re5et commented Jan 7, 2013

It will use the compiled version if one exists, probably ido.elc. You will need to remove that file, or recompile it with your changes.

@jxs
jxs commented Jan 28, 2013

finally fixed it by updating emacs to 24.3.50
tnhx a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.