Re: [O] Incremental search only within visble text

2014-04-01 Thread Ali Tofigh
Thanks! This is exactly what I was looking for. /ali On Tue, Apr 1, 2014 at 5:47 PM, Samuel Wales 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-backw

Re: [O] Incremental search only within visble text

2014-04-01 Thread Samuel Wales
(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-visi

Re: [O] Incremental search only within visble text

2014-04-01 Thread Anthony Lander
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 wrote: > Sometimes I just want to do an incremental search in the visible text > of a partially folded org file. In other words, I

[O] Incremental search only within visble text

2014-04-01 Thread Ali Tofigh
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