Skip to main content

Questions tagged [search]

Questions about search mechanics inside of Emacs.

43 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
416 views

How to get the last project search results?

When searching in project with +default/search-project after opening a result. How do I get back to the previous search results? And ideally to the same position in the results list? The usecase: ...
Witek's user avatar
  • 375
4 votes
0 answers
66 views

How to do searches in MediaWiki mode?

How to do searches in MediaWiki mode? If I instead do searches in Web browser, and then copy the URI of the page into Emacs, it sort of defeats the purpose of using Emacs as and MediaWiki power ...
qazwsx's user avatar
  • 601
3 votes
0 answers
72 views

Ignoring curly braces in search

Journal article titles in my BibTeX appear as follows: Title="{{E}nsure {C}onsistence {C}apitalization in {T}itles}", This produces consistence output, which I am happy with. However, searching for ...
SabreWolfy's user avatar
  • 1,428
2 votes
0 answers
48 views

Find notes with accented characters when searching for the base character (like isearch with character folding)

Emacs isearch has a "character folding" functionality which can be toggled with M-s ' during isearch. When this is activated, the search can find something like "maçã" (apple in ...
darcamo's user avatar
  • 311
2 votes
0 answers
146 views

Find and display duplicated regions of (org-mode) text across multiple files

What I'm trying to do I'm trying to condense a set of research notes consisting of over 250,000 words across 50+ files. I've converted these from previous file formats (mostly mind maps and OPML ...
Patrick's user avatar
  • 23
2 votes
0 answers
76 views

Helm Grep within a first results set / multi line search

I would like to use helm to search for two terms which may well be on different lines. Is there a way to grep for the first term then further grep within the resulting fileset the second term? eg ...
RichieHH's user avatar
  • 873
2 votes
0 answers
60 views

How to pre-select helm's pre-input?

In many other softwares (e.g., Chrome), when we initiate word search by Ctrl-F, the pre-input is pre-selected so that we can replace it by simply typing a new keyword, or append a new string to it by ...
AhLeung's user avatar
  • 1,083
2 votes
0 answers
311 views

How can I replace grep with sift or ag in helm-grep? (Not helm-do-ag)

I've currently got a custom function that I use to grep through files in helm. ;; Search for the thing that the cursor is on or that's already hilighted. If there's nothing, ;; switch back to ...
RealityMonster's user avatar
1 vote
0 answers
159 views

Programmatically use org-tags-view to search in current subtree

I am looking for a way to programmatically search for headings in the current subtree. More specifically, I have a vocabulary file, in which I store words I need to learn. Each word is a subtree in ...
Zelphir Kaltstahl's user avatar
1 vote
0 answers
47 views

How can I search for CamelCase words in a buffer using Elisp?

How can I find CamelCase words in the buffer using Elisp? Have started with the following but the pattern does not cover all situations of CamelCase. (defun detect-camel-case-words (string) "...
Dilna's user avatar
  • 1
1 vote
0 answers
64 views

Disable search-as-you-type in Doom Emacs

Is there a way to disable "search as you type" functionality in Doom Emacs? Either with the Vim equivalent of / or through I-search C-s. With large documents, that functionality causes Emacs ...
Sati's user avatar
  • 815
1 vote
0 answers
33 views

helm-do-ag not working as expected to search with command-option

I want a function to search in filenames and retrieve those filenames containing the string I search for. For some reason, this piece of code is not working for this purpose: (defun helm-do-ag-...
Adelita's user avatar
  • 255
1 vote
1 answer
229 views

How to multi-word search

When I use swiper to search inside a buffer I can use multiple search words separated by a blank space. This works. But I also want that behaviour when search for a file (C-x f), a variable or ...
buhtz's user avatar
  • 729
1 vote
0 answers
30 views

How to search amongst DONE items (either archived or not)

I am new to Emacs and wonder how it is possible to search a DONE item. I archive my DONE items from agenda files once every couple months. So some DONE items are in the agenda files themselves and ...
Elina Bochkova's user avatar
1 vote
0 answers
58 views

How to replace a block of text with a "query-like" approach all at once?

I want to search and replace a block of text with a "query-like" approach all at once. For example, if I have \emph{``Foo $\bar$ baz''} to be replaced by \emph{Foo $\bar$ baz} using a &...
Onner Irotsab's user avatar
1 vote
0 answers
147 views

Remember previous text searches history with positions after further text search

TL;DR: Is it possible to go back and forth between different helm-ag searches, and keep the last visited position in each of them? Using Spacemacs’ spacemacs/helm-project-smart-do-search (SPC / ...
Amir's user avatar
  • 151
1 vote
1 answer
351 views

org-mode: specifying a hyperlink target as regex and jumping directly to match?

The documentation of a Fortran code, being done in org-mode, is intended to be done in such a way that changing the Fortran source code to be documented should be kept at a minimum. There is the ...
Harald's user avatar
  • 11
1 vote
0 answers
19 views

How do you fix a large list of unknown files in Ebrowse?

I'm trying to use the emacs Ebrowse tool. The issue I'm having is a great majority of the C++ files, from my BROWSE file, are showing up as (unknown) file type, resulting in me being unable to open ...
Joe Plumber's user avatar
1 vote
0 answers
42 views

How find org entries that are missing a certain property?

I have this long sub-tree, I want to find the entries that I haven't set a certain property on yet. * Big list ** foo :PROPERTIES: :QUUX: 1 :END: ** bar :PROPERTIES: :END: ** baz ...
tladuke's user avatar
  • 121
1 vote
0 answers
170 views

How to delete a long region by setting a mark and then searching for the location of the end of the region?

I have a long document. I placed two unique identifiers, in the form of short strings of printable English letter, in two positions in the document. The identifiers are far apart. My task is to delete ...
Evan Aad's user avatar
  • 1,551
1 vote
0 answers
62 views

Google-like search (with several keywords) in local (project) files

Is there a minor-mode/function that let me search through a project with several keywords, in the way I a search for files on google. The result should be, like in search engines on the web, a list of ...
Johan Sandén's user avatar
1 vote
0 answers
36 views

Latex-mode: spotting typos which are errors in text mode but not in math mode

For my purposes the string "( 1" is a typo when it occurs in text but, obviously it isn't a typo in (LaTeX) math mode as in $( 1 ...$ or in math environments. What's the best emacs way to approach ...
Gabriele's user avatar
  • 1,642
1 vote
0 answers
72 views

using re-search-forward in yas-snippet

I'm trying to develop a new yas-snippet for expanding a common c++ log function I use a lot. The first parameter to the LOG function can be guessed by searching for existing LOG calls in the buffer. ...
Chris H's user avatar
  • 133
1 vote
0 answers
24 views

Writing helm search for MediaWiki-powered wikis

Related: How to do searches in MediaWiki mode In the absence of specific support for searching MediaWiki sites, helm seems like a good framework for search and navigation. How does one write a helm ...
Matthew Piziak's user avatar
1 vote
1 answer
73 views

In helm-find-files, how do you quit entering pattern and go back to selecting files?

All I want is to just quit entering patterns and go back to searching a different directory. C-g quits the whole search process.
Kabali's user avatar
  • 21
0 votes
0 answers
48 views

Fully case insensitive org property search

I would like to be able to perform fully case insensitive searches of properties and their values in my org files, and have the results presented in a sparse tree. For example, if I have sections ...
user2567544's user avatar
0 votes
0 answers
44 views

Regexp searches that repeatedly cover expressions

I'm just going through an old Latex-text I've written and wanted to use regexp-replace to make any pair of brackets containing at least one other pair of brackets into a \left(.*\right)-expression. ...
Alexander Praehauser's user avatar
0 votes
0 answers
339 views

error in process sentinel: Wrong type argument: integer-or-marker-p, nil

I get this error when I search dired with M-x find-name-dired: error in process sentinel: Wrong type argument: integer-or-marker-p, nil The search finds the files then ends with this error. I'm not ...
zeynel's user avatar
  • 371
0 votes
1 answer
68 views

Full-text search in notmuch (like multi-occur)?

Has anyone tried to search through emails' contents in notmuch in a "multi-occur like fashion", that is in a buffer that lists occurrences of a searched keyword and let's you visit their ...
Daniel Krajnik's user avatar
0 votes
0 answers
46 views

Info mode isearch across nodes

https://www.gnu.org/software/emacs/manual/html_node/info/Search-Text.html Instead of using s in Emacs Info and in the stand-alone Info, you can use an incremental search started with C-s or C-r. It ...
xeruf's user avatar
  • 354
0 votes
1 answer
28 views

helm-projectile-find-file-in-known-projects, but with grep

Using helm-projectile-find-file-in-known-projects is great if you know the filename. It searches all known projects for a filename. , but what if you want to search for a string one of the files ...
Jason Hunter's user avatar
0 votes
0 answers
54 views

helm-grep-do-git-grep: possible to show results in minibuffer?

When I use helm-grep-do-git-grep results are shown in the current window or a different one, but it takes the whole window. It there an option to show results in the minibuffer, below the current ...
Adelita's user avatar
  • 255
0 votes
0 answers
39 views

counsel-git-grep: why does it ignore .gitignore paths?

Currently there is an issue (or else I can't figure it out) with counsel-git-grep-function: why does this function not ignore the files in .gitignore when searching? It would be a useful function if ...
Adelita's user avatar
  • 255
0 votes
0 answers
13 views

How to create commands to search specific kinds of files using `helm-projectile`?

I want to be able to search python, typescript, and markdown files separely with helm-projectile. Is there a way to create distinct keybindings to search the contents of files with each extension. ...
Att Righ's user avatar
  • 775
0 votes
0 answers
51 views

How to show arrows for backward (<) and forward (>) search

I had installed emacs and org mode in Fedora Linux and when I clicked the Search (magnifying glass icon) in the toolbar, automatically underneath the toolbar, an arrow button to search backwards (<)...
ironfish's user avatar
  • 268
0 votes
0 answers
37 views

xml: copy line if tag found below that line and change content between tags from associated list or hash table

I am rather new to emacs and need some keywords which I can than use to search the manual/forum/google. Whenever a special tag name can be found in an xml file I would like to copy that line (tags and ...
potatoe's user avatar
0 votes
0 answers
119 views

How to use helm to search a buffer?

I would like to use the helm machinery to search "live" a buffer's lines. Is this possible? If not how would I go about figuring out how to implement this?
cammil's user avatar
  • 509
0 votes
0 answers
611 views

Search file within neotree in an unexpanded directory

Is it possible to search a file in neotree which is deep inside some directory? The normal search only searches in the visible parts i.e., within directories that have been expanded. I am looking for ...
elexhobby's user avatar
  • 101
0 votes
0 answers
64 views

Restarting search in a quick way

In Firefox I can hit Ctrl-f to start a search and Ctrl-g to search the next occurence of the string searched. If I would like to search for a different term, I simply hit Ctrl-f again and type in the ...
breathe_in_breathe_out's user avatar
0 votes
0 answers
229 views

Regex search and edit text simultaneously with multiple cursors

I'd like to search for a pattern with regex and simultaneously cut or edit all instances of that pattern. Is there a ready-made function for this? Atom, for example, has one such package - by ...
Sati's user avatar
  • 815
0 votes
0 answers
233 views

Skim: search backward generates shell buffer in Emacs

I have configured forward and backward search between Emacs and Skim (MacOS) for my LaTeX work. While the search works fine, every time I do an backward search from Skim, an additional shell buffer ...
latex_guy's user avatar
  • 207
0 votes
0 answers
26 views

Exiting visual-regexp search with a cursor motion command doesn't execute that command

I recently set up the visual-regexp-steroids package to try it out. The one major sticking point so far has been that when I terminate the search by typing a cursor motion command (typically M-< ...
Sean's user avatar
  • 941
0 votes
0 answers
131 views

Search in recent files

I use helm-recentf to receive the list of recent files. I would like to have an opportunity to search over the list of recently viewed files. Can I do it with grep or helm-swoop? Is there any other ...
Pfedj's user avatar
  • 338