Forum Replies Created
- AuthorPosts
- May 21, 2008 at 6:00 am in reply to: Undo mass replacement not fully function and become slower #5799
Yutaka Emura
Keymasterchabulier wrote:
If you have more than one million tokens to replace, you will need to increase the value in the Undo Max Number text box in the General tab of configuration properties. I might increase this default value, and also add the warning message box when undo may not be available.
I don’t think it’s the problem. In fact my file only have 931380 lines, and only 894261 entries were replaced. The max undo number should be 1,000,000(However this value seems can not be set more larger).
Thanks for your reply. Please let me know if you need more information for recreate this issue.
You can set more than 1,000,000. Can you try with 10,000,000? Thanks!
Yutaka Emura
KeymasterLTT wrote:
It seems the “Export all settings into ini files” action does not export ALL the settings. I found at least customized menus, recents, and macros were ignored.BTW, how can I restore the data from ini to registry? By removing the ini files during running?
Can you make sure INI files are used? You can check from the About dialog box on the Help menu.
You cannot restore the data from Ini to registry at this time. I will add this feature in future versions. Thanks!
May 20, 2008 at 3:47 pm in reply to: Undo mass replacement not fully function and become slower #5795Yutaka Emura
Keymasterchabulier wrote:
Hey,
When I downloaded the 7.07 and test the replace speed, I noticed that when I do a mass replacement and then undo the change. Not all the values in emeditor displayed was undoed.
When I close emeditor and reopen this file, seems everything is OK, not sure if it’s only an display issue or something else.Test an small file, it’s OK.
In the meantime, the undo change will display an process window and the speed was slower than before version.
search: DEBUG
replace: [DEBUG]If you have more than one million tokens to replace, you will need to increase the value in the Undo Max Number text box in the General tab of configuration properties. I might increase this default value, and also add the warning message box when undo may not be available.
Yutaka Emura
Keymasterdeity wrote:
Bookmarks not so visible in text, how I can do highlighting line with bookmark and save such file?It is not currently possible to highlight line with a bookmark. I will consider that in future verisons.
To save bookmarks for recently used files, check “Save Cursor Position and Bookmarks” check box (Tools menu > Customize > File tab).
Yutaka Emura
KeymasterVeign wrote:
Very good. Should have known you would have already thought of it.Keep up the great work on an excellent text editor.
You are welcome! Let me know if you have any other questions.
Yutaka Emura
KeymasterVeign wrote:
The tools bars for plugins won’t remember their state when emEditor is closed and restarted. Would be nice if I show the HTMLBar that when I open emEditor this toolbar is displayed.HTMLBar can be configured so it can display the HTMLBar only when an HTML file is active. You can check your settings from the HTMLBar properties.
Yutaka Emura
Keymastergan wrote:
I did a test on the same file, but with 1129344 entries to replace and as you said in this case emeditor is faster without any doubt…..especially when “Match case” is checked.I don’t know if textpad use ANSI comparison or not, but if that is the case i guess it can make a difference as well as you also said.
In any case i don’t find the speed to be a problem for either of them so it was never mean’t as a complaint…..just an observation.
Regards
GanI’ve played around with the source code, and succeeded to optimize the Replace function. The next minor version (7.00.7) will become much faster than previous versions (about 5X faster when ignoring case, and 2X faster when matching case in my test).
Yutaka Emura
KeymasterThe point is the number of tokens (occurrences). If you have a million of tokens to replace, you will see EmEditor is faster. Also, it is not fair to compare EmEditor with a non-Unicode text editor. There is a big difference between ANSI comparison and Unicode comparison.
Yutaka Emura
Keymasterprashob12 wrote:
Thanks a lot for replyingI tried what u told, but the number of Empty elements present in the is many, so if i use the replacment option it deletes one instance at a time, and the number of files with such instances are also many, so it will be time consuming.
I created a macro to replace all empty elements in at one go:
document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
document.selection.CharLeft(false,1);
editor.ExecuteCommandByID(4153);
document.selection.Find(“”,eeFindNext | eeFindReplaceRegExp);
document.selection.Replace(“(]+>){1,20}”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.selection.Replace(“”,””,eeFindNext | eeReplaceSelOnly | eeReplaceAll | eeFindReplaceRegExp);
document.selection.CharRight(false,1);But i dont know how to make it run on all the files.
There are 1000’s of such files.Thanks in Advance!!
If you have so many files, how about ReplaceInFiles Method (Editor object)?
Yutaka Emura
Keymasterprashob12 wrote:
Hello:Please help me to create a macro:
I want to delete the follwoing:
(]+>){1,20} (empty elements)
but there is a condition i want to delete the above only when it comes in the following parent element i.e..
….
For e.g.
BUNDESARBEITSGERICHT
URTEILThe above should apply to all the XML files in a particular path.
Thanks in Advance
Go to Customize > Search tab, and check “Regular Expressions Can Match New Line Characters”, and set “Additional Lines to Search for Regular Expressions” to 10.
Find:
(.*?)(]+>){1,20}(.*?)Replace with:
13Yutaka Emura
KeymasterGJim wrote:
I inadvertently closed the side window that shows the folders/files tree. I have been through all the various menu options, but I don’t find a way to restore that window.AtDhVaAnNkCsE
G’Jim c):{-
Click “Explorer” button on the Plug-ins toolbar, or click Plug-ins on the Tools menu, and then check “Explorer”.
Yutaka Emura
Keymasterprashob12 wrote:
can you make this macro run on all the files in certain path where those files are present. please!!!!In that case, you can go to “Replace in Files” on the Search menu, and
Find:
(rn){2,}Replace with:
rnFile Type:
*.txt (or enter file type)In Folder:
File folderCheck “Use Regular Expressions”
Don’t check “Keep Modified Files Open”Yutaka Emura
KeymasterI wrote the macro for you:
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=682&forum=19
Yutaka Emura
KeymasterI have 1 million line US-ASCII text (80.9MB), and the content is:
1-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
2-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
3-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
...
I replaced “abc” with “XXXXXXXXXX”. That means there are 2 tokens in each line to replace when case matching, or 3 tokens when no case matching, total of 2 (or 3 ) million tokens in the entire file. The host is Windows XP SP2 (English) in Virtual PC 2007 (within Windows Vista 64-bit Intel Core 2 Quad Q6600, 8GB RAM). All software programs are freshly installed.
Here is my result:
Textpad 5.2.0 32-bit
No case matching: 34 sec
Match case: 22 secNotepad++ 4.7.5
No case matching: 10 min 3 sec
Match case: 6 min 32 secEmEditor Professional 7.00.5
No case matching: 9 sec
Match case: 5 secThus, EmEditor Professional was the fastest of all these three. I also found something noteworthy: Only EmEditor allows you to cancel replacing during the operation. Other programs do not allow you to abort once you hit “Replace All” until the operation is finished. TextPad does not allow you open Unicode files (such as Japanese characters) correctly (it opens but converts Unicode characters into a substitute character “?”). I wanted to compare Unicode files, but couldn’t because of this.
I don’t know why you have the different result. Maybe because you have only a few tokens to replace, or your file might be encoded in a different encoding. This is the reason it would be more helpful if you could email me your sample file so I can reproduce your issue. Is your Windows system encoding English? (You can find out from Control Panel > Regional Language Options > Advanced tab – “Language for non-Unicode programs”)
Yutaka Emura
Keymasterprashob12 wrote:
I tried to use the macro script for replacement in all the files.below is the sample, here i am getting some error report for closing of “)” at sandeep, “D:PRASHOB, can you please tell me exactly where i am making the mistake.
editor.ReplaceInFiles( “prashob”, “sandeep, “D:PRASHOBLY-01juriontesttest2*.xml”, eeReplaceBackup, eeEncodingSystemDefault, “”, “D:PRASHOBLY-01juriontesttest2backup” );
” is missing after sandeep
editor.ReplaceInFiles( "prashob", "sandeep", "D:PRASHOBLY-01juriontesttest2*.xml", eeReplaceBackup, eeEncodingSystemDefault, "", "D:PRASHOBLY-01juriontesttest2backup" );
Yutaka Emura
KeymasterSteveH wrote:
I’ve never been completely comfortable with the way EmEditor handles current line highlighting and feel it would be be more logical to always have the current line highlighting always in the foreground.I would prefer if it the highlighting was not broken up with other elements such as string highlighting or URL highlighting as shown in this example.
You can use “Transparent” as background color for URL and highlighting strings. To do this easier, start from “EmEditor Standard” as the Theme (if “EmEditor Classic” was selected), and then start customizing Current Line background.
Yutaka Emura
Keymasterprashob12 wrote:
IS ANY ONE THERE TO SOLVE MY QUERY.I NEED TO KNOW WHETHER MULTIPLE REPLACMENT IS POSSIBLE OR NOT
SOLVE MY QUERY PLEASE.
I posted two samples
Replace All – mulitple times
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=675&forum=19Replace in Files – multiple times
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=676&forum=19Once these macros are included in your My Macros list, you can assign these macros to any shortcut keys or toolbars.
The All Documents checkbox in Replace dialog box — I will consider that feature in future versions. For now, you can use a macro to do that job. Thanks!
Yutaka Emura
Keymasterthylocene wrote:
As I said, my settings were out-of-the-box.Search and replace string did not include regex
ex. Replace AND with XXXXXXXXXX
Pretty simple
My environment is Vista 64-bit, but I do not think that has anything to do with it since the other programs are 32-bit as well so some thunking should be taking place.
I have 1 million line text (81MB), and did a simple replace (Replace “abc” with “XXXXXXXXXX”). In my machine it took about 8 seconds (when “Match Case” is off), and 3 seconds (when “Match Case” is on). Is this comparable to your results? You might want to try “Match Case” on, since this changes the speed dramatically. I will still look into more details. Thank you!
Yutaka Emura
KeymasterReplace command will not be recorded automatically.
This is what you need:
// JavaScript
docs = new Enumerator( editor.Documents );
for( ; !docs.atEnd(); docs.moveNext() ){
doc = docs.item();
doc.Activate();
doc.selection.Replace( "abc", "def", eeReplaceAll );
}
Yutaka Emura
Keymasteruser wrote:
helloCTRL+D deletes all the previous characters (from the position of the cursor), but only inside the same line
can I make another key combination to delete all the previous text (all lines and characters)?
thanks
CTRL + SHIFT + HOME, and then DELETE
If you would like, you can record this combination to a macro.
May 1, 2008 at 12:58 am in reply to: Opening unicode2hex.js produces a message about null spaces #5736Yutaka Emura
Keymastermaynard wrote:
unicode2decimal.js works, but unicode2hex.js is still broken.It is OK now. Make sure you clear cache on your browser before you download again.
April 30, 2008 at 9:39 pm in reply to: Opening unicode2hex.js produces a message about null spaces #5733Yutaka Emura
Keymastermaynard wrote:
I downloaded a couple of macros, but, every time that I try to run one on my test file (.h in UTF-8), I get an “error in line 1” message. I notice that the .js files start with a BOM and are rife with nulls. :-(I am sorry. Those files were corrupted, but I have just fixed those. Thank you for reporting the error.
Yutaka Emura
Keymasterprashob12 wrote:
Is it possible to sort number or text in ascending or descending order.I downloaded some pluggin called sortnumber500s.zip and copied all it content to my pluggin folder, but I dont see any option or icon for this when i open my editor.
Please help me in this
Thanks!!!!
You downloaded the source code of the plug-in. You will need to download the built versions either at:
http://www.emeditor.com/modules/mydownloads/viewcat.php?cid=4 (32-bit)
http://www.emeditor.com/modules/mydownloads/viewcat.php?cid=5 (64-bit)After installed, the plug-in should be found in the Plug-ins toolbar, or on the Tools menu > Plug-ins.
Yutaka Emura
Keymasterprashob12 wrote:
HelloooIs there is any option in the editor to have Extend Selection
When we do ctrl+F (Find) is the tool capable of doing the extendable selection,
Also in Ctrl+G (Go to the line)Before emeditor i used to use Textpad having these functions in the textpad is of great help as it comes very useful to find something from one point to the another,
This comes very useful when recording the macro also.Is it possible with the Emeditor then please let me know.
Thanks
You can press F8 before searching or jumping, so the selection becomes the keyboard selection mode. I hope this helps.
Yutaka Emura
Keymasterprashob12 wrote:
hello AllI am new to the forum
Is it Possible to view the file name of open documents in the editor in a list format.
now if i open multiple documents its all coming on top of the window. this way its confusing to identify a particular documents. It would be helpful if i can view it in a list format.
:-(
Did you check “Open Documents” plug-in?
- AuthorPosts