Forum Replies Created
- AuthorPosts
Yutaka Emura
KeymasterHellados wrote:
This is a good macros for small files, but it is very slow for me :-(
I have more 50-100mb txt files, and i need to replace dublicate lines (words) more then 406000 words and this macro working very slow :(
my pc’s performances is very good, I have Intel COre 2 Duo E8400 2GB ram corsair 1TB HDD
What can i do?
:-(I did some optimization. Please try this. This also shows the current status on the status bar.
function Pair( i, s )
{
this.index = i;
this.str = s;
}
nLines = document.GetLines();
// Create an array
a = new Array( nLines );
status = "Reading lines..."
// Fill the array a with all lines (with returns) in the document.
for( i = 1; i <= nLines; i++ ) {
if( (i \% 1000) == 0 ){
status = "Reading lines: " + String(i + 1) + "/" + String(nLines);
}
var pair = new Pair( i, document.GetLine( i, eeGetLineWithNewLines ) );
a.push( pair );
}
status = "Sorting lines..."
a.sort( function(a,b){
if( a.str > b.str ){
return 1;
}
if( a.str < b.str ){
return -1;
}
return a.index - b.index;
});
// Delete duplicate elements.
for( i = 1; i < nLines; i++ ){
if( (i \% 10) == 0 ){
status = "Deleting duplicate lines: " + String(i + 1) + "/" + String(nLines);
}
if( a[i].str == a[i-1].str ){
a[i].index = 0; // disable
}
}
status = "Sorting lines again..."
a.sort( function(a,b){
return a.index - b.index;
});
var str = "";
for( i = 0; i < nLines; i++ ){
if( a[i].index != 0 ){
if( (i \% 1000) == 0 ){
status = "Joining lines: " + String(i + 1) + "/" + String(nLines);
}
str += a[i].str;
}
}
// Replace the entire document with new elements
document.selection.SelectAll();
document.selection.Text = str;
status = "Duplicate lines deleteded."
Yutaka Emura
Keymasterzhouzh2 wrote:
WOW! So finally dynamic snippet is coming :-)
I have just played around Emeditor 9 alpha for a while, it’s pretty stable, but it seems the “Automatically Show the Candidate List as Typing” function of WordComplete plug-in is not working? the candidate list will never show up only if i let it to do so.
One more suggestion for the new awesome Snippets plug-in: is it possible to mark the candidates with 1-9? therefore user can select them and insert them with one button.
Again, GREAT JOB! Emeditor is walking toward “perfect”.P.S. Can I use the new Snippets plug-in in 8.04?
“Automatically Show the Candidate List as Typing” function of WordComplete plug-in still works here. The only issue is that the snippet hint (tooltip) may not appear if there is conflict with WordComplete plug-is. Still the WordComplete candidate list always appears.
The new Snippets plug-in does not work on v8.xx. You must install v9 alpha.
Yutaka Emura
Keymasterwebern wrote:
Do you strictly recommend a clean install of 9.00alpha?No, you don’t have to do clean install. You can install without uninstalling the previous version. However, if you want to turn on new features such as Brackets/Quotation marks auto-comple, and “Indentation after #include”, you will need to check those options. You might also want to reset keyboard shortcuts so you can use F11 and CTRL + SHIFT + V for new features.
For future alpha versions, you will need to uninstall any existing alpha version before installing latest alpha version. However, you can still keep the current settings. When you uninstall the previous version, you will be prompted to save the current settings. Selecting YES will allow you reuse the existing settings when you install newer versions.
April 17, 2009 at 4:11 pm in reply to: EmEditor crashes when Find&Replace for column selection #7148Yutaka Emura
KeymasterPigletEE wrote:
Hi!
EmEditor crashes when Find&Replace for column selection.
To reproduce:
1. Enable Virtual Space;
2. Make a column selection “with virtual space” on some lines;
3. Call Find&Replace dialog;
4. Find ” ” and replace any character;
5. Press Replace All…I couldn’t reproduce your issue. Which version of EmEditor are you using? Which OS do you use? Any other options such as regular expressions, escape sequences, Case Match, Word Only, etc.?
April 13, 2009 at 11:16 pm in reply to: Unexpected behaviour of Ctrl+Shift+] keystroke on brackets (WinXP) #7142Yutaka Emura
Keymasterwebern wrote:
The problem described below occurs only on WinXpSP2 with EE 8.04.Steps to reproduce the issue:
1. Create a HTML-file. Fill it with lines below:<b>Test:</b> <img src=""><br>
<b>Test:</b> <img src="">
<img src="">
<img src="">
<img src=""><br>2. Move the cursor to the opening bracket for IMG Tag, then press Ctrl+Shift+].
Repeat it for all lines.
In my case the cursor makes no move to the closing bracket that i believe is unexpected.
The only expected action takes place at the last line.Note: No problems with it on Vista(x64) and EE 8.04(x64).
I reproduced this issue, and I have fixed this for the next release. Thank you!
Yutaka Emura
KeymasterMichael2 wrote:
HelloI am trying to buy a package of 3 licenses for EmEditor, but RegNow refuses to process my order.
Twice I tried to buy the licenses and twice I got an email reading as follows:
—-
Unfortunately your recent order with us was unable to be processed. There are many reasons why your order may have been declined. Please email our customer service department at [email protected] and reference your order number if you have any questions.
—-When I look up the order status on the regnow website I get the following information:
—-
The following orders were either never finalized by you, perhaps you entered incorrect information, or perhaps we were unable to obtain authorization from your bank to charge your credit card.
—-I have checked the information several times and I am absolutely sure that it is correct. Of cause they cannot charge my credit card, since this is not the payment method I have selected.
Is there any other way to buy a license for EmEditor?
Regards
MichaelAs the email suggests, please email to [email protected] with Order ID to ask what was wrong with your order. They are the only one who can tell you the reason. You might want to use another credit card or another payment method such as PayPal next time. Thank you!
Yutaka Emura
KeymasterFlint wrote:
I noticed strange problems in how EE processes regular expressions.1. Start the portable version of EE 8.04 with clean settings and open a text file with the following contents:
>MDB
>NSCopy +
>Resourse Extractor +2. Press Ctrl+H, enter the Find expression:
^([^n])
and Replace with expression:
>13. Check the Use Regular Expressions checkbox, press Replace All.
4. The result is:
>>MDB
>>>N>SCopy +
>>Resourse Extractor +You can see that the second line is processed incorrectly.
If I perform the same find-replace step-by-step, I get the same result (in the “NSCopy” string the letters N and S are found and replaced as if they were located at the beginning of the line), though they are not.
I reproduced your issue, and I will fix this issue soon. Thanks!
Yutaka Emura
Keymasterpetermcg wrote:
Ability to right-click drag and drop text which would show ‘Move here’, ‘Copy here’ or Cancel dialogUndo and Redo History List
Ability to highlight Current Line (similar to TextPad)
Ability to perform simple numeric or alphanumeric Sort of lines in a text file
Zoom where the text is zoomed crisply using Vector graphics or font size is increased
Visible Spaces, not just Marks
Right click copy highlighted text, right click where want to paste text does not set the cursor there.
Where Save button on toolbar is greyed out please make it Save As
Ability to Check for updates via Help menu and seamless update installer
Please keep up the great work on EmEditor.
Many Thanks,
Peter
You can highlight the current line by changing the color of the current line in the Display tab of configuration properties. Did you want a different behavior than this way?
Simple numeric or alphanumeric Sort of lines is possible by using plug-ins or writing a simple macro. See these plug-ins and macro:
http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=4&lid=103
http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=4&lid=108
http://www.emeditor.com/modules/mydownloads/singlefile.php?cid=8&lid=207Yutaka Emura
Keymastereko4v wrote:
Hi All,I am a new user and I wonder is there any way to change EmEditor’s default font setting, may I use the font & size I choosed as new default ? the default save coding (currently mine is “Traditional Chinese – just like ANSI” and I want it be “Unicode – UTF16LE”)?
Btw, I have searched for similar topics of these questions, but the search function here seems not good or my skill suck?
Thanks in advance for any help,
echo
Yes, you can change the font settings from configuration Properties, Display > Font.
Yutaka Emura
Keymasterindex wrote:
I get wordcomplete results in uppercase.
How I can get lowercase words (html & css)?I guess you are still using configurations from older versions. You might go to HTML Properties (and CSS Properties), select Highlight (1) tab, and then click Reset to reset all highlight words. The default keywords are set in lower cases.
Yutaka Emura
Keymasteropedroso wrote:
It would be great if I could get the full filename opened to the clipboard by right-clicking it. Even better, a copy filepath and a second option with copy full filename to clipboard.By the way, I am user since emeditor 6.0 and this is the best editor ever! Love the 64-bit version! So fast!
Thanks again, and keep up the great work,
opedroso :-)There is a command called “Copy File Path Name” on the File name by default. If you could find this command, you might need to add this command in the Customize menus on the Tools menu. There is also “Copy File Directory Name” command available in the All Commands and also for you to customize in the menus or keyboard shortcuts. If you just want the file name without path, you might want to write a macro.
April 5, 2009 at 11:28 pm in reply to: Check box allowing to change default dir to current dir in Open File dialog #7125Yutaka Emura
Keymasteropedroso wrote:
Need someway to change the current directory, which seems to be set on save as, but not set on open file dialog or on save.This happens when I start editing a file on a directory and then have to open and edit a series of files on a different directory. I have to specify the directory over and over for every file being opened.
Opening a file should reset the default directory, or at least, provide a checkbox to allow it to change.
Maybe two current directories? One for SaveAs and another for OpenFile?
Thanks,
opedroso :-)By default, the Windows OS controls the initial folder when you display Open or Save As dialog boxes. EmEditor doesn’t control these initial folders unless you check “Remember Last Folder” check box in the “Customize” dialog box. It would be helpful if you could let us know what your settings are and which OS you use.
Yutaka Emura
Keymastertopic7 wrote:
i have one 5000 line text file.
i want to make 50 files that has 100lines.
what will i do?Please use a macro to do that kind of routine works.
Yutaka Emura
KeymasterFlint wrote:
I didn’t notice when this change was introduced, but earlier the command Erase Highlight cleared the highlighting in the current document only, but now it clears it in all the documents.EE 8.03, 8.04
OS: WinXP SP3 ProI think I changed this behavior. I might have to add another option or create a separate command for this purpose. Thanks for your input!
Yutaka Emura
KeymasterRaiGal wrote:
Hello again,
After a clean install of EmEditor things are much better.If i close EE with a workspace (multiple tabs) open and start it over from the main .exe file,the workspace is restored.However if i try to open a file without EE already running,the last workspace is discarded and EE starts a new workspace.
Are the save/restore workspace functions designed to work that way?
Is there any way to get EE not discard the last workspace and instead open the new file alongside with those in the last workspace?
Thanks in advance!
Thanks for your comments and input on this workspace. Currently, this is the supposed behavior, but I understand it should be corrected. I will try to correct this behavior by the next major version. Thank you!
Yutaka Emura
KeymasterThat’s strange. It didn’t crash on my machine.
Yutaka Emura
Keymasternickb wrote:
Hello,Is there a way to run a macro (.jsee) on all files in a folder? If you have, for example, 500 files and you want to run a macro for all of them…Is opening all files the only solution to accomplish this?
Thx!
You can write a macro to enumerate all files within a folder. It should be easy by using an external object “FileSystemObject”. See Files Collection for an example.
Yutaka Emura
Keymastergning wrote:
It still indents by the full amount. Even if I just change the value and call Save() and don’t restore any old value, all indentation is still by the old amount.I’m using release 7.02, by the way.
How about TabColumns insread of IndentColumns?
Why do you still use 7.02? Can you try the newest version?
Yutaka Emura
KeymasterJonny wrote:
Sorry, I just don’t understand how to execute the auto indent in a file.
I’m mostly using PHP.
I checked “Auto indent”.
I set begin indent to {
I set end indent to }
I set end of statement to ;But there’s no change in my php file. I guess there’s a button/menu option to execute it?
I just don’t know how to execute the auto indentation.
For reference, in Eclipse you mark all text you want to auto-indent and press Ctrl-alt-f, and it does the job for you. I’m guessing this is a similar feature.
EmEditor cannot automatically format just by entering this information in the Tab/Indent dialog box. EmEditor will indent while you type, but not after you have finished typing. For your purpose, you will need an external tool to do formatting.
Yutaka Emura
Keymastershx wrote:
Just e-mailed the settings.I received your email. It seems that the “EmEditor Quick Start” option in the Shortcut tab of Customize dialog did not work with Auto Restore Workspace. Please uncheck “EmEditor Quick Start” option in the Shortcut tab of Customize dialog” while I am working on this issue. Thank you for finding this bug!
Yutaka Emura
Keymastershx wrote:
Yutaka wrote:
If you try to open a particular file with EmEditor — like double-clicking a file in Explorer — then, not all files will be restore but just a file you try to open.I am not doing this.
If you run EmEditor without any files in command line, then all the saved files should be restored. This is the specification now, but I might add an option in the future.
This is what I am doing and it is not restoring the workspace.
However,I know that the workspace is being saved because if I left click on the emEditor Icon on the task basr and select restore workspace it does restore.
Like the other issue, can you please email me at [email protected] with the exported settings after zipped? I tried with your settings you emailed me before, but “Restore Workspace” and “Save Workspace” checkboxes are not checked. When I checked these options, the workspace did restore correctly. I must have used different settings. So, if you can email me the settings when you have this issue, I will try to debug the issue. Thank you!
Yutaka Emura
KeymasterYutaka wrote:
shx wrote:
Yutaka wrote:
You will have to select multiple lines.I did select multiple lines and it still does not work. I know it used to work.
So I installed EMeditor on another computer and the tab worked. Then I exportedimported my settings from the one that does not work into the new one and it also stopped working.
Would you please email me at [email protected] with the exported settings after zipped? I will try to reproduce your issue. Thank you.
I received your email. Thanks!
I imported your settings, and I reproduced your issue. The issue was somehow your TAB was not assigned to “Indent” command any more. Please go to configuration properties, Keyboard tab, select “Edit” category and “Indent” command, press TAB in the text box and click “Assign” button. This will resolve the issue. I will try to reproduce your other issue about restore workspace shortly.Yutaka Emura
Keymastershx wrote:
Yutaka wrote:
You will have to select multiple lines.I did select multiple lines and it still does not work. I know it used to work.
So I installed EMeditor on another computer and the tab worked. Then I exportedimported my settings from the one that does not work into the new one and it also stopped working.
Would you please email me at [email protected] with the exported settings after zipped? I will try to reproduce your issue. Thank you.
Yutaka Emura
Keymastershx wrote:
It used to be that when I select a line then hit the tab key the line would be moved over based on the tab.Now the line gets replaced by the tab.
I do not have “replace tabs with space” setting turned on.
Because of this I can no longer select multiple lines and tab them.
What happened
It should work. You will have to select multiple lines. If you select a single line or a portion of a line, the selection will be only replaced by a tab.
Yutaka Emura
Keymastershx wrote:
They are both checked.If you try to open a particular file with EmEditor — like double-clicking a file in Explorer — then, not all files will be restore but just a file you try to open. If you run EmEditor without any files in command line, then all the saved files should be restored. This is the specification now, but I might add an option in the future.
- AuthorPosts