EmEditor (text editor) Forum Index
   Enhancement Suggestions about Plug-ins
     Outline: add Type "Paragraph"
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Stefan
Posted on: 9/4/2012 11:50 pm
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 265
Re: Outline: add Type "Paragraph"
.

Reminder

Quote:
Yutaka wrote:
Please let me know again if new features didn't show up when the new major beta version becomes available.



Hi Yutaka.

I still think there should be an easy way to just
collapse whole paragraphs with the Outline plugin.
(Just having blank lines as delimiter)

I want to suggest to add "Paragraph"
to the "Type" drop-down list.



_

EDIT

in the meantime I have found a work around:

Search and replace begin of paragraph with a dot.
Find: ^$\r\n(.)
Repl: \n\n.\1


Then use default Outline plugin Custom method for Text
.
..
...
....
.....


Of course we can use another char then dot.
.
Stefan
Posted on: 10/29/2011 9:45 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 265
Outline: add Type "Paragraph"
.

I want to suggest
to add "Paragraph" to the Type drop-down list.


Example document with "Fold paragraphs":

[-]Lorem ipsum dolor sit amet, consectetur 
 | adipisicing elit, sed do eiusmod tempor 
 | incididunt ut labore et dolore magna 
 | aliqua. Ut enim ad minim veniam, quis 
 |-nostrud exercitation 
 
[-]ullamco laboris nisi ut aliquip ex ea 
 | commodo consequat. Duis aute irure dolor in 
 | reprehenderit in voluptate velit esse 
 | cillum dolore eu fugiat nulla pariatur. 
 |-Excepteur sint 
  
[-]occaecat cupidatat non proident, sunt in 
 | culpa qui officia deserunt mollit anim id est 
 |-laborum
  





I get it nearly myself by using something like

Custom
^$
^.+$

but that doesn't match the first line of an paragraph but

[-]
 | Lorem ipsum dolor sit amet, consectetur 
 | adipisicing elit, sed do eiusmod tempor 
 | incididunt ut labore et dolore magna 
 | aliqua. Ut enim ad minim veniam, quis 
 |-nostrud exercitation 
 
[-]
 | ullamco laboris nisi ut aliquip ex ea 
 | commodo consequat. Duis aute irure dolor in 
 | reprehenderit in voluptate velit esse 
 | cillum dolore eu fugiat nulla pariatur. 
 |-Excepteur sint 
 
[-]
 | occaecat cupidatat non proident, sunt in 
 | culpa qui officia deserunt mollit anim id est 
 |-laborum
 
(I mean, i know that ^$ is not the prober regex to match the first line,
but i don't get the right one.
I need something like "^$\n.+$" or simple "^$\n.+"
Means: i want to match an empty line following by an non-empty line.
Works with Find but i don't get it to work in Outline)




- - -


I think it could be also generally nice to have an "Line offset"

Like

Type: Number of Braces {}
Line Offset: [ + 1 ]

to put the fold-mark on the next line after the match.

.
Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文