Forum Replies Created
- AuthorPosts
Stefan
ParticipantI can’t edit my post anymore. So here a new post:
Stefan wroteSo I renamed the whole “eeConfig.ini” (instead of deleting).
OK, that was the wrong way ;-)
Now I have only that three configurations available in EE :-D
The “eeConfig.ini” is still need with all the old configuration, but has to cleaned up probably?I am going to fix that now…..
June 18, 2015 at 5:18 am in reply to: Search plugin: let work on fresh, unsaved files (Untitled.txt) #20192Stefan
ParticipantHe, crazy, it works on a fresh, unsaved file Untitled, if there is another, but saved Untitled.txt file open too?!?!?
June 17, 2015 at 11:27 pm in reply to: BUG: Word Count: Refresh Automatically -> Refreshes count during selection #20189Stefan
ParticipantDeipotent>>> “are already shown in the status bar”
But only if one has enabled it via “Tools > Customize > Status”
Stefan
ParticipantArrg, I can’t edit my post anymore :-(
————- Translated Japan to English strings:
101 分割ボックス リセット
102 分割ボックスやスクロールバーなどをリセットし再描画させます。\n分割ボックス リセット
103 分割ボックス
104 Version 1.0.1 written by 星くず彼方に
105 SplitBox
101 Split box reset (Text in “Tools > Plugins” menu for the Split box plugin)
102 Reset and split box and scroll bars to redraw.\n split box reset (Text in status bar on hovering over “Tools > Plugins > <Split box>”)
103 Split box (Plugin name in Plugin configuration dialog)
104 Version 1.0.1 written by The stardust Kanata (Copyright notes in Plugin configuration dialog)
105 SplitBoxStefan
ParticipantAlso thanks for the link to Word-split function. Learned something new (also some new shortcuts, great!)
Also thank to The stardust Kanata for making that plugin.
Only I don’t get it working on 15.1.2, 32-bit portable
– copy SplitBox.dll to plugin folder
– launch EmEditor
– Tools > Plugins > Customize Plugins > Add > SplitBox.dll
I see now Tools > Plugins > <some japanisch words (Split box reset)>, but I can’t enable the plugin.
It just does nothing after clicking on it. I don’t see that little handles on the scroll bars.
Any help?
Any change to translate it to English?
Thanks for making EmEditor.
————- Translated Japan to English strings:
101 Split box reset
102 Reset and split box and scroll bars to redraw.\n split box reset
103 Split box
104 Version 1.0.1 written by The stardust Kanata
105 SplitBoxStefan
ParticipantThanks Paul!
Stefan
ParticipantThe solution depends on how your real world example off “hello.com” look like.
For just “hello.com” search for \w+\.com
Find: \w+\.com
[X] Regular Expression
Explanation:
\w+ >> one-or-more (+) of “Any word character” (\w)
\. >> literal dot
com >> literal ‘com’
Even just “\w+.com” will work, but can lead to unwanted results as we search for one any-sign (.) instead of a real literal dot (\.)
More at the help > EmEditor Home – EmEditor Help – How to – Search >>> Regular Expression SyntaxStefan
ParticipantHi Paul,
please try Regular Expression, like
Find: john.+?\b
Replace: tim
[X] Regular ExpressionExplanation:
. (dot) >> match an single sign
+ >> match one-or-more of the expression just before (here: the dot)
? >> here: match non-greedy (only as much as need) . (depends which editor and which settings you use)
\b >> match till an space is foundStefan
ParticipantJavaScript code???
Try doubling the backshlash as that has a special meaning in JS.
>>> “C:\\install.ini”
“C:\install.ini” means: “C:” + “\i” + “nstall.ini”
“C:\\install.ini” means: “C:” + “\” + “install.ini”Stefan
Participant“””have a footer with the line count of the highlighted lines”””
Try “Tools > Customize… > [Status] > [X] Number of Lines”Stefan
ParticipantTested with beta 2: solved! Good work!
I will exchange my above linked video with a new one.
Stefan
ParticipantHi Yutaka.
Since this is an often missed feature, I want to remind you on reconsidering this idea please.
Issue:
On performing an action, the selection goes lost and have to be re-select by hand again.
Wish:
Keep the coordinates and restore the selection for us.
Idea:
1) New option like Properties for xxx > General > “[X] Remember Selection” // Store the current selection coordinates for each document.
2) New Edit menu entry “Restore Selection” // Restore last made selection
3) New Macro command “document.selection.SelectLast();” // Restore last made selection
Further improvements for following-up versions:
– Save the selection coordinates for each document, based on the filename, to EmEditor settings.
– Store more than one last coordinates.
– improve macro command to”document.selection.SelectLast( nSelectionIndex );”Save e.g. as:
[Selections]
filename | last selection | second last | third …
test file.txt|1,56,233,72|1,56,200,0|
Thanks for making EmEditor.Stefan
ParticipantExplanation video added > http://youtu.be/Uqrs42tOnlA
Stefan
ParticipantGeneral description:
1. Paste in a CSV file ( no matter if semicolon or tab separated)
2. Be sure one column have quoted data with an line break.
3. Switch to CSV mode (semicolon or tab respectively)
4. Lines are joined and the “MJ ” are visible.
5. Switch back to Normal mode and some of the last lines are NOT switched back to multiple lines, but still have the “MJ” visible.
Details:
My first test was this semicolon separated example:
– Paste in the “example of the original data” from http://stackoverflow.com/questions/14396605/read-csv-file-with-embedded-newlines
– In EmEditor use User-defined separated = ;
– Lines are joined and the “MJ ” are there
– Switch to “Normal Mode” >>> only the first line is restored to multi-lines.My second test was with the example from above post too:
ID;Name Ver.;Lang
10;”Acrobat Vollversion
5.05″;German
My third test was this tab separated example:
1) paste a few lines of the “Suppliers” list from “http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_join_inner”
2) in “SupplierName” column add quotes and an line break where you want.(example below)
3) Switch to tab CSV mode.
4) Lines are joined and the “MJ ” are visible.
5) Switch back to Normal mode and some of the last lines are NOT switched back to multiple lines, but still have the “MJ” visible.
6) Add some more lines to the end and test again: now the “MJ” are transformed to line break.
7) Manipulate fourth or sixth last line again by adding quotes and line breaks.
8) Test again and you will see that the “MJ” are NOT transformed back to line break.
This happens always with just the last few lines.
I will create a video for better explanation…. tomorrow.
Examples from “Suppliers” list from “http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_join_inner”SupplierID SupplierName ContactName Address
1 Exotic Liquid Charlotte Cooper 49 Gilbert St.
2 New Orleans Cajun Delights Shelley Burke P.O. Box 78934
3 Grandma Kelly’s Homestead Regina Murphy
SupplierID SupplierName ContactName Address
1 Exotic Liquid Charlotte Cooper 49 Gilbert St.
2 “New Orleans Cajun
Delights” Shelley Burke P.O. Box 78934
3 “Grandma Kelly’s
Homestead” Regina MurphyStefan
ParticipantHello Yutaka,
thanks for feedback!1) Yes, question about “Embedded newlines” is answered.
2)
>> “Match Embedded Newlines in CSV” check box from the Find dialog box <<
I think, after some more tests I understand this now:
This option works as a limitation to match CSV line breaks (MJ) ONLY,
and ONLY if we are in one of the CSV modes.
It will not match ANY line break if this option is enabled for Normal mode.With out that option enabled, search for line breaks will match everywhere.
(tested with above Stack Overflow example and RegEx search for “ul.+?ul”)
So I understand it as “Match CSV Embedded Newlines only”
Right?
BTW:
me think the “Match Embedded Newlines in CSV” check box
should be located under “Customize > CSV”
and not in the main Find dialog,
as that is an option only a few would need in an text editor.3)
>> Switching to “Normal Mode” only the first lineS are restored to multi-lines. <<
Some more investigation to the bug mentioned in my above first post:
After a few tests, it seams, always only the last five/ten lines
are involved and not transfered back to multi line mode.If I add for an test some more “last” lines,
the before last lines are transfered back correctly now.It seams your for statement if off by some indices?
HTH?
Thanks for making EmEditor.Stefan
ParticipantAnd thanks for EmEditor v14.6.0:
“CSV > Fixed Width Columns” (keeps formating / the vertical alignment of columns)
Stefan
ParticipantTest now “Match Embedded Newlines in CSV check box from the Find dialog box”.
Have:
ID;Name Ver.;Lang
10;”Acrobat Vollversion
5.05″;German
102;”Acrobat Elements Version 5.05″;German
2380;”Active Sync 3.7″;GermanSearch for “version.+5”
[x]RegEx
[x]Match embedded newlinesResult:
Found only 1 match: “Acrobat Elements Version 5.05”
Did not found “Acrobat Vollversion
5.05”
or
“Acrobat VollversionMJ5.05”No matter if in Normal Mode or User-defined separated = ;
Tested with emed32_14.8.901_portable.zip – and with functions from Find dialog only.
HTH? Thanks for making EmEditor.
—-
Forgot: The new feature “Remove Embedded Newlines” works for me..
Stefan
ParticipantFirst: what are “Embedded Newlines in CSV”?
I found some answer there:
http://en.wikipedia.org/wiki/Comma-separated_values
(Fields with embedded line breaks must be quoted)and there:
http://stackoverflow.com/questions/14396605/read-csv-file-with-embedded-newlines“2030”;”NH Amersfoort”;”Stationsstraat 75″;”3811 MH AMERSFOORT”;”www.some-hotels.tld”;”Info line 1
Info line 2
Info line 3
Info line 4″– – –
Now I have test this new feature:
– Paste in the “example of the original data” from http://stackoverflow.com/questions/14396605/read-csv-file-with-embedded-newlines
– In EmEditor use User-defined separated = ;
– Lines are joined and the “MJ ” are there
– Switch to “Normal Mode” >>> only the first line is restored to multi-lines.– – –
Another test example:
ID;Name Ver.;Lang
10;”Acrobat Vollversion
5.05″;German
102;”Acrobat Elements
“;German
2380;”Active Sync
3.7”;German– UDS = ;
– Lines are joined and the “MJ ” are there
– Switch to “Normal Mode” >>> only the first lineS are restored to multi-lines.– – –
Tested with emed32_14.8.901_portable.zip – and with functions found on tool bar only.
HTH?
Stefan
Participantif(document.selection.IsEmpty){document.selection.SelectWord()}
document.selection.ChangeCase(eeCaseCapitalize); //Title caseStefan
ParticipantWhy are there space right under “print”?
That indention should be only till the “p” of print.for i in range(1, 10, 1):
~~~~print i
~~~~ # where the line starts
I have tried, v0.01 adds an additionally blank line, making two of them.
V0.02 remove the indenting whitespace, leaving one blank line only.
Did you have enabled line numbers? I had got unintentional additional empty line too on pressing enter; the indented one and a additional line break.
Maybe that is what you see too?
Sorry, right now I see no issue here. But I will test some more later on…..Stefan
ParticipantShavok
it does not work with the Auto Indentation activated
WHAT? do not work? I don’t see what you want to tell.The v0.02 just deletes auto-indented-whitespace from last line and use that last line as trailing empty line.
V0.01 adds an additionally blank last line first and deletes the auto-indented-whitespace from that new last line, ending up in two empty last lines.
Test with v0.02
Code:der Test
der Test
der TestA blank line is added.
Code:der Test
der Test
der Test
No line is added.
Code:der Test
der Test
der Test
~~~Trailing blanks are removed, left a blank line.
Code:der Test
der Test
der Test
~~~der Test
~~~der Test
~~~Trailing blanks are removed, left a blank line.
“~~~” indicates whitespace here.
“”does not work”” helps nobody. Tell what you get and what you had expect instead. That could led to improvement.Stefan
ParticipantSorry, update again.
Better logic:
if last line have whitespace only, just remove these blanks and done.
Else, if last line is not empty, but not whitespace only, add a new line.
(This way we not end up with too “visible blank” lines)
I also added cursor handling to went back from EOF to origin cursor place.
(Not needed for this thread purpose as event script, but if script is used on demand)Not asked for, but just done for the fun:
//JavaScript Macro for EmEditor, v0.02 by Stefan //Purpose: Ensure that last line is a blank one, by adding one if need. //// Don't show the cursor move//// //EmEditor Help - EmEditor Macro Reference - Window Object //prevents changes in EmEditor from being redrawn: Redraw = false; ////Store cursor position//// //EmEditor Help - EmEditor Macro Reference - Selection Object //Returns the column number of the cursor position. xPos = document.selection.GetActivePointX(eePosLogical); //Returns the line number of the cursor position: yPos = document.selection.GetActivePointY(eePosLogical); ////Check status of last line//// //EmEditor Help - EmEditor Macro Reference - Document Object //Retrieves the number of the lines in the document: nLines = document.GetLines(); //Retrieves the text on the specified line: str = document.GetLine(nLines); //Moves the cursor to the end of the document: document.selection.EndOfDocument(); //If last line only contains indenting white space, just remove the whitespace// if(str.match(/^\s+$/) != null){ //Selects a line at the cursor: document.selection.SelectLine(); //Deletes the selected text: document.selection.Delete(); }else if (str.length != 0){ //If last line is NOT empty, but not whitespace only, add one blank line// document.selection.NewLine(); } ////Restore cursor position//// //Sets the cursor position: bExtendSelection = false; document.selection.SetActivePoint(eePosLogical, xPos, yPos, bExtendSelection); //<EOF>
Stefan
ParticipantOh, you was faster than I?
I have just this moment worked on this too :
//JavaScript Macro for EmEditor, v0.01 by Stefan //Purpose: Ensure that last line is a blank one, by adding one if need. //EmEditor Help - EmEditor Macro Reference - Document Object //Retrieves the number of the lines in the document: nLines = document.GetLines(); //Retrieves the text on the specified line: str = document.GetLine(nLines); if(str.length != 0){ //If last line is NOT empty, add one blank line: document.selection.EndOfDocument(); document.selection.NewLine(); //Workaround: Delete automatically added indenting from line above,// //if line was not empty but indented by white space// //Selects a line at the cursor: document.selection.SelectLine(); //Deletes the selected text: document.selection.Delete(); }
Stefan
ParticipantThere is nothing like that on the default settings dialog:
http://www.emeditor.com/forums/topic/automatic-saving-of-all-documents-as-lf-only/Me guess, the only way currently available, is to write a macro and enable the event “Before Saving” for that macro.
See a how-to >> http://www.emeditor.com/forums/topic/automatically-determine-xml-documents/
HTH? :DStefan
Participant\r is right, basically.
But for EE us rather \n, no matter if for CR or CRLFSee help
EmEditor Home – EmEditor Help – How to – Search
To Specify New LinesAn good indicator are also the line numbers (View > Line Numbers)
and also View > Marks > Returns
and View > Marks > CR and LF with different Marks.
- AuthorPosts