-
Notifications
You must be signed in to change notification settings - Fork 22
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
Request: Emulating macOS's Find Next/Previous Commands #84
Comments
These all seem like reasonable proposals. My thoughts:
It might be best to start by seeing if you can implement these user commands using the existing CTRLF public interface, and then if others express interest in the same feature, we could add them to CTRLF. |
overvale
added a commit
to overvale/dotfiles
that referenced
this issue
Feb 19, 2021
I have sort of implemented this just with my configuration. There are two issues:
Edit: had pasted wrong version of code prior |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some very useful standard Mac finding commands/behaviors that I'd love to be able to emulate in
ctrlf
. The relevant commands (in almost any Mac app) can be found in the menubar under "Edit > Find":Find... — This is pretty much what ctrlf does, however the Mac doesn't start with an empty search, it starts with the last thing you searched for.
This is possible to emulate with
(ctrlf-forward 'fuzzy nil ctrlf--last-input)
. However, I have no idea if this is robust or a "bad idea" in some way.Also, it doesn't seem that
ctrlf-backward
allows for theinitial-contents
argument.Find Next/Previous — This command jumps directly to the next/previous occurrence of your last search without activating the Find interface. This, admittedly, isn't all that different from typing
C-s C-s
but there are circumstances when jumping to the next occurrence without the find interface is nice, and faster since you don't need to exit the interface.Use Selection For Find — This command simply uses the selected text for the next Find command. So you can select some text, type
command-E
, thencommand-G
to jump to the next occurrence of that text (no find interface). Alternatively, you might want to select some text, hitcommand-E
, and then call up the find interface withcommand-F
so you can edit the search term.I don't know if this is the proper and complete way to do this, but it should be possible with something like:
So my proposal is:
last-input
by default. Or perhaps alternate functions which do this.last-input
without activating ctrlf.last-input
.The text was updated successfully, but these errors were encountered: