Text search feature #122
No reviewers
Labels
No Label
blocked
bug
build
documentation
duplicate
enhancement
finger
gemini
gopher
help wanted
http
in progress
invalid
local
needs-info
non-code
non-functional
non-urgent
question
release
rendering
suggestion
telnet
terminal
urgent
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sloum/bombadillo#122
Loading…
Reference in New Issue
No description provided.
Delete Branch "text-find"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a proposed solution to #99
It is not the most beautiful code I have ever written, but it does the job. I'll make some notes on places that I think basic improvements might be able to be made. I also need to update the man page.
The basics:
/
to start searching (enter text after the slash). Does not handle wildcards or regex. This is basic search.n
move to next line that contains a search termN
move to previous line containing a search termNotes:
/
and then hit enterI have tested this in large and small documents (with common words like
and
). I have found it to be pretty performant and have not noticed any slowdown (at least not on my xps-13 running ubuntu and st).