emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Incremental search only within visble text
@ 2014-04-01 19:43 Ali Tofigh
  2014-04-01 21:03 ` Anthony Lander
  2014-04-01 21:47 ` Samuel Wales
  0 siblings, 2 replies; 4+ messages in thread
From: Ali Tofigh @ 2014-04-01 19:43 UTC (permalink / raw)
  To: Mailinglist emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incremental search only within visble text
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Anthony Lander @ 2014-04-01 21:03 UTC (permalink / raw)
  To: Ali Tofigh; +Cc: Mailinglist emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

Hi Ali,

If you install isearch+ (in elpa) you can toggle invisible text searching
with C-+.

Hope this helps,

 -Anthony


On Tue, Apr 1, 2014 at 3:43 PM, 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
>
>

[-- Attachment #2: Type: text/html, Size: 964 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incremental search only within visble text
  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
  2014-04-01 23:47   ` Ali Tofigh
  1 sibling, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2014-04-01 21:47 UTC (permalink / raw)
  To: Ali Tofigh; +Cc: Mailinglist emacs-orgmode

(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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Incremental search only within visble text
  2014-04-01 21:47 ` Samuel Wales
@ 2014-04-01 23:47   ` Ali Tofigh
  0 siblings, 0 replies; 4+ messages in thread
From: Ali Tofigh @ 2014-04-01 23:47 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Mailinglist emacs-orgmode

Thanks! This is exactly what I was looking for.

/ali

On Tue, Apr 1, 2014 at 5:47 PM, Samuel Wales <samologist@gmail.com> wrote:
> (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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-01 23:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-04-01 23:47   ` Ali Tofigh

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).