Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7554

    capaccino
    Member

    Find Window should be provide Word Find Count Function.
    Like Ultra Edit
    I write a script to count in EmEditor,but it is too slowly in large file.

    var nFound ;
    var sInput,count=0;
    sInput=prompt(“Please input Regex”,””);
    if(sInput!=””){
    while((nFound =document.selection.Find(sInput,eeFindNext | eeFindReplaceRegExp))>0){
    count++;
    }
    alert(“count:”+count );
    }

    #7556

    Yutaka Emura
    Keymaster

    capaccino wrote:
    Find Window should be provide Word Find Count Function.
    Like Ultra Edit

    Please use WordCount plug-in instead. Thanks!

    #7557

    capaccino
    Member

    WordCount plug-in is Count the whole Text.
    I want to count how many words I find in Find Window.(Use regular expressions)

    #7558

    capaccino
    Member

    May be use WordCount plug-in can find, but it’s too slowly when using large file. I open more than 20M file,the plug-in spend more than 3 minutes.
    I only want to count the num what I defind regex in Find Window.
    Like Ultra Edit,it is very quickly.

    #7559

    Yutaka Emura
    Keymaster

    capaccino wrote:
    WordCount plug-in is Count the whole Text.
    I want to count how many words I find in Find Window.(Use regular expressions)

    You can define a query and use a regular expression.
    http://www.emeditor.com/modules/tutorials4/index.php?id=14

    #7560

    capaccino
    Member

    May be use WordCount plug-in can find, but it’s too slowly when using large file. I open more than 20M file,the plug-in spend more than 3 minutes.
    I only want to count the num what I defind regex in Find Window.
    Like Ultra Edit,it is very quickly.

    #7561

    chabulier
    Member

    This feature should be considered into core function. In many times we only care about the count. As I now, both the textPad, NotePad++ has this feature. Maybe the count function is hard for RegExp?

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone