You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78a3535
Browse filesBrowse the repository at this point in the historyBrowse files
Make the search prompts suggest and complete what is in the project
The prompts that read something to search for were plain `read-string'
calls with one default, sharing the generic minibuffer history. They
now go through one reader that knows a little about where it was called
from:
- M-n offers the function around point, the visited file's name and the
last Isearch string after the symbol or region at point.
- They keep a history of their own.
- TAB completes the word before point against the identifiers that occur
in the project, commonest first.
The identifiers are looked up with rg (or git grep) for the prefix
typed. Listing every identifier of a project up front took 10 to 14
seconds on trees the size of Emacs or OTP, while a prefix lookup stays
under half a second there, so nothing is indexed.
The prompt stays free text: completion is a completion-at-point function
in the minibuffer and not `completing-read', which would let RET pick a
candidate over what was typed in the vertical completion UIs.
`projectile-find-references' joins the shared prompt, which makes the
symbol at point its default instead of its initial input.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@
8
8
9
9
### New features
10
10
11
+
-[#2208](https://github.com/bbatsov/projectile/pull/2208): The search prompts are smarter about what you might be looking for, while staying plain text prompts.
12
+
-`TAB` completes the word before point against the identifiers that occur in the project, most common first (`projectile-search-complete-identifiers`).
13
+
-`M-n` offers the name of the function around point, the name of the current file and the last Isearch string, after the symbol or region at point.
14
+
- They have a history of their own, `projectile-search-history`, instead of sharing the generic minibuffer history.
11
15
-[#2182](https://github.com/bbatsov/projectile/pull/2182): Add `projectile-todos-in-projects` and `projectile-multi-occur-in-projects`, so every sibling command now has a public generic taking any list of projects behind it and a command for a group of your own is a two-line wrapper for all five.
12
16
-[#2181](https://github.com/bbatsov/projectile/pull/2181): Sapling and Bazaar projects can now list their own ignored files, via the new `projectile-sapling-ignored-command` and `projectile-bzr-ignored-command`.
13
17
-[#2180](https://github.com/bbatsov/projectile/pull/2180): Every shell backend can now open in another window (`s-p x 4 <key>`), not just vterm, eat and ghostel: `shell`, `eshell`, `ielm`, `term` and the backend-dispatching `projectile-run` gained `-other-window` commands.
@@ -23,6 +27,7 @@
23
27
24
28
### Changes
25
29
30
+
-[#2208](https://github.com/bbatsov/projectile/pull/2208): `projectile-find-references` uses the same prompt as the other search commands, so the symbol at point is the default rather than text already typed into the minibuffer.
26
31
-[#2206](https://github.com/bbatsov/projectile/pull/2206): Deleting files inside a project with a persistent cache no longer writes the cache file once per deleted file. The write waits until Emacs is idle, and pending cache writes are flushed when Emacs exits.
27
32
-[#2206](https://github.com/bbatsov/projectile/pull/2206): `projectile-find-test-file` is much faster on large projects: the project type and its test conventions are looked up once, not once per file.
28
33
-[#2206](https://github.com/bbatsov/projectile/pull/2206): Listing the known projects is faster with `projectile-ignored-projects` set: its entries are symlink-resolved once per listing, not once per project.
0 commit comments