Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search-backward fix #182

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
search-backward fix
CGenie authored Mar 27, 2019

Verified

This commit was signed with the committer’s verified signature.
ScrubN Scrub
commit 0399d9d17db736fbae5b8766541c09e5ffa27603
5 changes: 3 additions & 2 deletions helm-dash.el
Original file line number Diff line number Diff line change
@@ -317,7 +317,7 @@ If doesn't exist, it asks to create it."
(cond
((and (not (equal result 0))
;; TODO: Adjust to proper text. Also requires correct locale.
(backward-search "too long"))
(search-backward "too long"))
(error "Failed to extract %s to %s. Filename too long. Consider changing `helm-dash-docsets-path' to a shorter value"))
((not (equal result 0)) (error "Failed to extract %s to %s. Error: %s" docset-temp-path (helm-dash-docsets-path) result)))
(goto-char (point-max))
@@ -408,7 +408,8 @@ The Argument FEED-PATH should be a string with the path of the xml file."
(defvar helm-dash-sql-queries
'((DASH . (lambda (pattern)
(let ((like (helm-dash-sql-compose-like "t.name" pattern))
(query "SELECT t.type, t.name, t.path FROM searchIndex t WHERE %s ORDER BY LENGTH(t.name), LOWER(t.name) LIMIT 1000"))
(query "SELECT t.type, t.name, t.path FROM
Index t WHERE %s ORDER BY LENGTH(t.name), LOWER(t.name) LIMIT 1000"))
(format query like))))
(ZDASH . (lambda (pattern)
(let ((like (helm-dash-sql-compose-like "t.ZTOKENNAME" pattern))