[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/project-switching 9422fb5 03/15: Improve project name completion
From: |
Simen Heggestøyl |
Subject: |
feature/project-switching 9422fb5 03/15: Improve project name completion |
Date: |
Tue, 26 May 2020 11:43:18 -0400 (EDT) |
branch: feature/project-switching
commit 9422fb5e686a66898c2de76226f8a404ab253136
Author: Dmitry Gutov <address@hidden>
Commit: Simen Heggestøyl <address@hidden>
Improve project name completion
* lisp/progmodes/project.el:
(project-prompt-project-dir): Use REQUIRE-MATCH=t. Make sure the
'substring' completion style is used by default.
---
lisp/progmodes/project.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index fd691be..3e943ca 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -763,8 +763,12 @@ The project is chosen among projects known from the
project list.
It's also possible to enter an arbitrary directory."
(project--ensure-read-project-list)
(let* ((dir-choice "... (choose a dir)")
- (choices (append project--list `(,dir-choice)))
- (pr-dir (completing-read "Project: " choices)))
+ (choices
+ ;; XXX: Just using this for the category (for the substring
+ ;; completion style).
+ (project--file-completion-table
+ (append project--list `(,dir-choice))))
+ (pr-dir (completing-read "Project: " choices nil t)))
(if (equal pr-dir dir-choice)
(read-directory-name "Choose directory: " default-directory nil t)
pr-dir)))
- branch feature/project-switching created (now 449810b), Simen Heggestøyl, 2020/05/26
- feature/project-switching afb7602 01/15: Add project switching functionality, Simen Heggestøyl, 2020/05/26
- feature/project-switching 9422fb5 03/15: Improve project name completion,
Simen Heggestøyl <=
- feature/project-switching c8cca68 04/15: Use an alist instead of a keymap, Simen Heggestøyl, 2020/05/26
- feature/project-switching afb96da 05/15: Move project-dired and project-eshell higher, Simen Heggestøyl, 2020/05/26
- feature/project-switching 02e1ee9 06/15: Integrate project-switch-project with project-find-regexp, Simen Heggestøyl, 2020/05/26
- feature/project-switching 46bb2cb 07/15: Change dispatch binding of 'project-find-regexp', Simen Heggestøyl, 2020/05/26
- feature/project-switching 0db801a 11/15: Update the Emacs manual with recent project.el changes, Simen Heggestøyl, 2020/05/26
- feature/project-switching e37e6c8 13/15: Some copy edits, Simen Heggestøyl, 2020/05/26
- feature/project-switching 9f88356 02/15: Simplify a little, and avoid duplicate commands, Simen Heggestøyl, 2020/05/26
- feature/project-switching c6f56bd 08/15: Turn project switch menu var into a public alist, Simen Heggestøyl, 2020/05/26
- feature/project-switching 7082468 10/15: Rename 'project-switch-menu' to 'project-switch-commands', Simen Heggestøyl, 2020/05/26
- feature/project-switching 0b057ca 12/15: Teach project-current to inhibit the prompt, Simen Heggestøyl, 2020/05/26