Animeshz / hop.el

An easymotion-like plugin for emacs.
GNU General Public License v3.0
42 stars 0 forks source link

Not dependent on pcre? #3

Open JSpenced opened 12 months ago

JSpenced commented 12 months ago

Any way to make this not dependent on PCRE?

I was reading to install elpaca and pcre, but not really clear directions how to do so with the mac builds. I want to try the package, but is that really required as I don't need regex search.

Animeshz commented 11 months ago

Finding words, start of line or other things are done by common regex (pcre), for no-pcre it'd require rewriting those regex into elisp format. I'm not confident enough that I could write them as I don't use them...

libpcre comes even when git is installed, this thin wrapper that exposes libpcre to the emacs can be automatically compiled by elpaca/straight (specified in README) or you can compile them by make and place it anywhere and add that path using LoadPath - EmacsWiki.

Animeshz commented 11 months ago

Support for emacs-lisp regex and optionalizing the pcre dependency can count as two PRs for this Hacktoberfest—each up for grab. If anybody is interested, feel free to take it on!