[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult-hoogle e97a2ae43e 13/21: Fix adding module to s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult-hoogle e97a2ae43e 13/21: Fix adding module to search query |
Date: |
Sun, 4 Feb 2024 12:57:53 -0500 (EST) |
branch: externals/consult-hoogle
commit e97a2ae43efa34c4e19812891eb042eefe2b1265
Author: Rahguzar <aikrahguzar@gmail.com>
Commit: Rahguzar <aikrahguzar@gmail.com>
Fix adding module to search query
---
consult-hoogle.el | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/consult-hoogle.el b/consult-hoogle.el
index 4e576c2814..e71c4ecf6a 100644
--- a/consult-hoogle.el
+++ b/consult-hoogle.el
@@ -23,26 +23,22 @@
(require 'shr)
;;;; Variables
-(defcustom consult-hoogle-args "hoogle search --jsonl -q --count=100" "The
hoogle invocation used to get results." :type 'string :group 'consult)
+(defcustom consult-hoogle-args "hoogle search --jsonl -q --count=250" "The
hoogle invocation used to get results." :type 'string :group 'consult)
(defcustom consult-hoogle-show-module-and-package t "Whether to show the
package and module in the candidate line." :type 'boolean :group 'consult)
(defvar consult-hoogle--history nil "Variable to store history for hoogle
searches.")
-(defvar consult-hoogle-tab-map (let ((map (make-sparse-keymap)))
- (set-keymap-parent map universal-argument-map)
- (define-key map (kbd "p")
#'consult-hoogle-restrict-to-package)
- (define-key map (kbd "m")
#'consult-hoogle-restrict-to-module)
- (define-key map (kbd "b")
#'consult-hoogle-restrict-to-module-level-beg)
- map))
-
(defvar consult-hoogle-map (let ((map (make-sparse-keymap)))
(define-key map (kbd "M-i")
#'consult-hoogle-browse-item)
(define-key map (kbd "M-j")
#'consult-hoogle-browse-package)
(define-key map (kbd "M-m")
#'consult-hoogle-browse-module)
(define-key map (kbd "M-<up>")
#'consult-hoogle-scroll-docs-down)
(define-key map (kbd "M-<down>")
#'consult-hoogle-scroll-docs-up)
- (define-key map (kbd "TAB")
consult-hoogle-tab-map)
+ (define-key map (kbd "TAB p")
#'consult-hoogle-restrict-to-package)
+ (define-key map (kbd "TAB m")
#'consult-hoogle-restrict-to-module)
+ (define-key map (kbd "TAB b")
#'consult-hoogle-restrict-to-module-level-beg)
+
map))
;;;; Constructing the string to display
@@ -190,7 +186,7 @@ window. This can be disabled by a prefix ARG."
"Restrict to a part of MODULE heirarchy.
If called with numeric prefix LEVEL only use first ARG levels of module."
(interactive (list (consult-hoogle--get 'module (consult-hoogle--candidate))
(prefix-numeric-value current-prefix-arg)))
- (when module (consult-hoogle--add-to-input "+" (progn (string-match
(rx-to-string `(: bos (= ,level (: (0+ (not ".")) (?? "."))))) module)
(match-string 0 module)))))
+ (when module (consult-hoogle--add-to-input "+" (progn (string-match
(rx-to-string `(: bos (= ,level (: (1+ (not ".")) (?? "."))))) module)
(match-string 0 module)))))
(provide 'consult-hoogle)
- [elpa] externals/consult-hoogle 3f6a93a7ab 08/21: squash! Fix fontification, (continued)
- [elpa] externals/consult-hoogle 3f6a93a7ab 08/21: squash! Fix fontification, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle f78db233c0 18/21: New consult builder format, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 80a6f2af4d 19/21: Format conventionally, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle cc4ed71724 21/21: Use list of command name and args, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 7e292b8483 04/21: Docs scrolling commands, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 04940b0e62 02/21: Quote fix, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle e1586d0190 09/21: Kill the fontification buffer after exit, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 621204e982 10/21: Refactor, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle ba907bc218 11/21: bugfix, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle bbf8bb7dd4 12/21: Add some search refinement commands, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle e97a2ae43e 13/21: Fix adding module to search query,
ELPA Syncer <=
- [elpa] externals/consult-hoogle 44f7e70f38 14/21: More functions for restricting or excluding, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 187aa54617 15/21: Add restrictions to the end so that hoogle can candle -, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 0646c598a4 16/21: Add support for cabal-hoogle, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle ecc541af1d 17/21: Document support for cabal-hoogle, ELPA Syncer, 2024/02/04
- [elpa] externals/consult-hoogle 0319d66c5d 20/21: State dependency on haskell-mode, ELPA Syncer, 2024/02/04