emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Ali Tofigh <alix.tofigh@gmail.com>
Cc: Mailinglist emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Incremental search only within visble text
Date: Tue, 1 Apr 2014 14:47:07 -0700	[thread overview]
Message-ID: <CAJcAo8soe-XbffHKOb_Tx7dfGkfATfAk7+JfKhnb5A-PVcAzcQ@mail.gmail.com> (raw)
In-Reply-To: <CAD=7RJZYHG7G30mnktnvSfLp0xHvmq5WDrgDZ7m3GBbycjPOFA@mail.gmail.com>

(define-key global-map "\C-\M-r" 'alpha-isearch-backward-visible)
;; also for dired filename search
(define-key global-map "\C-\M-s" 'alpha-isearch-visible)
(defun alpha-isearch-backward-visible ()
  (interactive)
  (let ((search-invisible))
    (isearch-backward-regexp)))
(defun alpha-isearch-visible ()
  (interactive)
  (let ((search-invisible))
    ;; notwork
    ;; (call-interactively #'query-replace-regexp)
    (isearch-forward-regexp)))


On 4/1/14, Ali Tofigh <alix.tofigh@gmail.com> wrote:
> Sometimes I just want to do an incremental search in the visible text
> of a partially folded org file. In other words, I want the search to
> ignore text that is invisible due to folding. I know that there is an
> org-copy-visible command. Is there an equivalent command for
> searching?
>
> /ali
>
>


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.

  parent reply	other threads:[~2014-04-01 21:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01 19:43 Incremental search only within visble text Ali Tofigh
2014-04-01 21:03 ` Anthony Lander
2014-04-01 21:47 ` Samuel Wales [this message]
2014-04-01 23:47   ` Ali Tofigh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8soe-XbffHKOb_Tx7dfGkfATfAk7+JfKhnb5A-PVcAzcQ@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=alix.tofigh@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).