Forum Replies Created

Viewing 25 posts - 2,901 through 2,925 (of 3,701 total)
  • Author
    Posts
  • in reply to: EmEditor Professional 8.00 beta 8 #6402
    Yutaka Emura
    Keymaster

    Also, watch all of our new tutorial videos:
    http://www.emeditor.com/modules/tutorials4/

    Please let us know if you have any comments. We are going to create more videos!

    in reply to: EmEditor Professional 8.00 beta 7 #6400
    Yutaka Emura
    Keymaster

    Flint wrote:
    Maybe, not exactly a bug, but definitely a problem. :-)

    I opened a large file (SQL, 39 Mb, 130 lines). Then I performed a search for the regular expression:
    (?<!)(\)*Z
    and found one. Then I press Shift+F3 to find the last occurence, and EE hanged completely. It looks like it tries to find what I asked, but does not show the progess dialog, so I cannot interrupt the search. I waited for 5 minutes, but still no dialog appeared, and I had to terminate EE.

    Besides, the backward search turned out to be extremely slow. For testing I tried to find a word “DROP“. Here is the part of the text from one of the lines of that SQL file:

    const CS_DROPSHADOW = $00020000;
    rnbegin
    rn inherited;
    rn { Disable drop shadow effect on Windows XP and later }
    rn if (Win32Platform = VER_PLATFORM_WIN32_NT) and
    rn ((Win32MajorVersion > 5) or
    rn ((Win32MajorVersion = 5) and (Win32MinorVersion >= 1))) then
    rn Params.WindowClass.Style := Params.WindowClass.Style and not CS_
    DROPSHADOW;

    Here I highlighted the found occurences of “DROP”. I searched backward, so I found the second occurence. And when I pressed Shift+F3, it took EE 5 seconds to find the previous occurence, though it is less than 400 characters away!

    I’m using EE 8.0b7 on WinXP SP3.

    I understand this is an issue. I might fix that in future versions.

    in reply to: Find in Files to output bar #6399
    Yutaka Emura
    Keymaster

    PaperPlate wrote:
    The ability to have the output generated by the find in files display in the output bar is fantastic. Is it possible to have this work for macros using the FindInFiles command as well?

    Thanks

    Yes, include the this value:

    eeFindOutput: 16777216

    as nFlags parameter of FindInFiles Method (Editor Object). The constant (eeFindOutput) will be defined in the next beta of Version 8. Thanks!

    in reply to: Help file improvements #6396
    Yutaka Emura
    Keymaster

    Stefan wrote:
    EmEditor Help – EmEditor Macro Reference – Directives

    I miss the info that this Directives must be
    on top of the script at the first lines, above the main code.
    (Maybe this is familiar for coders, but not for all people)

    And we need no enclosing the text in quotes ” ”
    because the are then part of the title or tool tip too.

    ——————- ——————–
    I have testet this issue with this little macro:

    #title = Enclose selection with \%…\%
    #tooltip = Tooltip: Select some text and execute this macro to put an \%-sign in front and at the end of the selected text
    ‘// enclose an selection with sign
    mySign = “\%”
    selText = document.selection.Text
    selText = mySign + selText + mySign
    ‘alert selText
    document.selection.Text = selText
    ——————– ——————–

    I have updated the Help in the next beta. Thanks!

    Yutaka Emura
    Keymaster

    dreftymac wrote:

    You can use QueryStringByID Method to figure out which plug-in corresponds to which ID

    Yes, thank you for this, but that was not actually the question. The question is not how to run any plugin, but the question was how to run any specific *command* inside of any specific plugin.

    For example:


    /// we know we can do this for any plugin ...
    var idd = 5637; /// QueryStringByID found this for us
    editor.ExecuteCommandByID(idd); /// activate the "outline" plugin

    /// but can you do *this* for any plugin ...
    /*
    var oPlugin = editor.GetPluginByID(idd); /// <-- how can you do this?
    oPlugin.doCommand('CollapseAll'); /// <-- or this?
    oPlugin.doCommand('ExpandAll'); /// <-- or this?
    oAnyPlugin.doCommand('AnyCommandYouWant'); /// <-- or even this?
    */

    It is not possible, unfortunately.

    Yutaka Emura
    Keymaster

    dreftymac wrote:
    PROBLEM:
    I would like to be able to run all available plugin commands from an emeditor macro. The problem is, ExecuteCommandByID does not seem to know what all the ID numbers are for every single plugin action.

    QUESTION:
    Is ExecuteCommandByID capable of finding and running all of the commands that are defined in every plugin? If not, is there another way to tell a macro to run any arbitrary command from any arbitrary plugin?

    Thanks for any help or info

    You can use QueryStringByID Method to figure out which plug-in corresponds to which ID.

    in reply to: EmEditor Professional 8.00 beta 7 #6390
    Yutaka Emura
    Keymaster

    Stefan wrote:
    That Download side
    http://www.emeditor.com/modules/download2/ (Next Beta Version)

    still links to beta 6

    instead to beta 7
    http://www.emeditor.com/pub/emed800b7epx.msi

    Sorry, I just updated the link.

    in reply to: Find Next or Find Next Word #6387
    Yutaka Emura
    Keymaster

    iisisrael wrote:
    I altered it a little to (almost) match what we want to accomplish:

    s = document.selection.Text;
    if (!s) { document.selection.FindRepeat(eeFindRepeatNext); }
    else {
    document.selection.Find( s, eeFindNext | eeFindReplaceRegExp );
    }

    However, the “document.selection.Find” doesn’t replace the string used by “document.selection.FindRepeat”! This means, when I select text and run this macro, then click to erase the selected found text, and run the macro again, it doesn’t repeat the find on the recently selected text find, but finds the text from the last “Find”. How do I replace the last “Find” value?

    Also, if the currently selected text is selected as a result of the find, I don’t want that to become the new find string, I want to continue with the original find string. how do I check to make a distinction between a manually selected string and a string selected by a find? (i.e. I want to repeat my search for the regex, not the next resulting found string from the regex)

    Thanks!

    I don’t think there is a good way to replace the last Find value.

    You might want to claer “Use Word at Cursor in Find/Replace Dialog Box” in the Search tab of the Customize dialog box so the Find string will always become the last searched string.

    in reply to: Highlight current line quirks #6382
    Yutaka Emura
    Keymaster

    viettuan wrote:
    Version 8 beta release but,I don’t see a new change. This problem is not fix. :-o :-o :-o
    We will have to wait how long?

    In Version 7 or later, you can use “Transparent” color for the background color.

    Go to the Display tab of congirutation properties, and select “Transparent” for the background color of highlight items. An easiest way is to select “EmEditor Standard” and customize from here.

    in reply to: Find Next or Find Next Word #6375
    Yutaka Emura
    Keymaster

    iisisrael wrote:
    I want to select text, hit one key, and find the next occurrence USING CURRENT FIND OPTIONS (e.g. “Use Regular Expressions”).

    * Currently, Find Next Word does this EXCEPT for regular expressions. (i.e. “Match Case” is left checked/unchecked, but “Use Regular Expressions” gets unchecked by using Find Next Word).
    * If Find Next Word isn’t the place to do this, then Next should have an option of switching the Find string to the currently selected text (if any selected) without requiring I open the Find… dialog box first. As it is, Next ignores the currently selected text and moves to the next occurrence of the last Find… string.

    This will be a BIG time saver as ergonomics and editing speed / efficiency are a high priority. Thanks.

    You are right. If you use the same option (Regular expression) always, how about using this macro:


    document.selection.SelectWord();
    s = document.selection.Text;
    document.selection.Find( s, eeFindNext | eeFindReplaceRegExp );

    in reply to: Projects.dll crash #6372
    Yutaka Emura
    Keymaster

    Stefan wrote:
    EmEditor 8 beta3
    FileDescription : EmEditor
    FileVersion : 7, 9, 9, 0
    ProductVersion : 7, 9, 9, 0
    Creation Date : 02/10/2008 17:52:24

    I have the Project plugin open.
    i have two files in the project.
    I was able to drag and drop one file at the other
    (like drag an file to an sub-folder)

    Then i get this error:

    —————————
    EmEditor
    —————————
    An application error has occurred in the plug-in:
    Projects.dll
    at the function:
    OnEvents
    nEvent = 0x200000

    Do you want to disable this plug-in?
    —————————
    Ja Nein Abbrechen
    —————————

    I couldn’t reproduce issue, but I hope it has been fixed already in beta 5. Can you please try again with beta 5? Thanks!

    in reply to: EmEditor Professional 8.00 beta 5 #6371
    Yutaka Emura
    Keymaster

    zhouzh2 wrote:
    Box Select issue:
    http://www.live-share.com/files/355464/bug.swf.html

    I realize this issue, but this is currently by design. When using proportional fonts, this behavior can happen. Make sure you use a fixed pitch font.

    in reply to: EmEditor Professional 8.00 beta 5 #6370
    Yutaka Emura
    Keymaster

    ToadLoadin wrote:
    Strange display of indent Guides while box editing:

    http://www.box.net/shared/poiv2eazzo

    OK. it will be more natural in the next version.

    in reply to: EmEditor Professional 7.50 alpha 1 #6363
    Yutaka Emura
    Keymaster

    I fixed (1) Select Encoding dialog issue in beta 5.

    (2) Overlapped control characters.
    Check “Show Control Characters” in the Marks tab of Customize dialog box. One is on and the other is off. The character width is calculated according to rectangular box (when “Show Control Characters” is off). It is difficult to adjust this width and it is hard to explain here. Please use the settings when “Show Control Characters” is off.

    in reply to: EmEditor Professional 8.00 beta 4 #6362
    Yutaka Emura
    Keymaster

    yongfa365 wrote:
    Search all open documents bug

    regular expressions bug :
    http://zixunchaoshi.com/test/bug1.swf

    replace bug:
    http://zixunchaoshi.com/test/bug2.swf

    I will fix both cases by next beta. Thanks!

    in reply to: EmEditor Professional 8.00 beta 4 #6358
    Yutaka Emura
    Keymaster

    owilsky wrote:
    Workspace bug, also in stable version 7.02:

    – configure EmEditor to automatically save workspace when exiting EmEditor
    – Open only one file
    – Close EmEditor
    – Restart EmEditor
    – Previously opened file is reopened. So far, so good.
    – Close EmEditor
    – Delete or rename the one file of the workspace
    – Try starting EmEditor from start menu

    EmEditor complains about the missing file and refuses to open.

    Only possibility to open EmEditor is to give an existing file name as argument.

    Could you fix this please? It is very annoying.

    Yes, in Version 8, there is a new command called “Erase Workspace”, but that was not enough. In the next beta, there will be a prompt message to ask you if you want to erase workspace in this case.

    in reply to: EmEditor 8 beta 3 replace function #6355
    Yutaka Emura
    Keymaster

    stewcam wrote:
    I think you may be right in thinking that the replace function has a particular problem with non-text items. For example, one search and replace that ran extremely slowly on a 5 Mb file and then locked the computer involved finding the tab and newline combination tn and replacing it with the pipe character |. The same operation ran almost instantly in NoteTab Pro, even though it involved over 20,000 replacements. It ran quite quickly in Boxer, but never concluded as the maximum line length was then exceeded. It also failed to finish in TextPad, causing the program to freeze.

    You are right about it! I will try to optimize the speed in these conditions as well. Thanks!

    in reply to: customise SQL syntax #6354
    Yutaka Emura
    Keymaster

    Nufacik wrote:
    Hi Yutaka.

    Your advice looks as the right solutions, but have 1 issue…
    If I write keyword, I press SPACE to complete word and selection from dialog. Aftewr this, keyword will change tu uppercase. Its fine, but I’m still on edn of the word. So I have tu pust one mor time space to move cursor about one char next… So, If I do this, aj write word and must pust 2 times space to continueing writing… this is only one “bug”… otherwise its look fine…

    You are right. But I don’t think there are ways to work arund this now. I might think about adding this feature in future versions. Thanks!

    in reply to: How to use "Object"? #6353
    Yutaka Emura
    Keymaster

    Stefan wrote:
    Sorry, i don’t understand this
    and didn’t found this answer in the help or on the forum.

    In help i found
    WrapMode Property
    [VBScript]
    nMode = object.WrapMode
    object.WrapMode = nMode

    I try
    nMode = Object.WrapMode
    alert nMode

    But get an error ==> [Object needed: object]

    Question:
    how can i do this?
    Something like ==> SET OBJECT = CreateObject(“EEMacro.dll”) ???
    I searched everywhere … :-(

    v8 beta4
    Thanks for an hint, Stefan.

    I am sorry the document is not clear. This portion was meant to show the syntax. More examples were needed.
    Here is how you might want to accomplish your task:


    cfg = document.Config;
    cfg.General.WrapMode = eeWrapByWindow;
    cfg.Save();

    in reply to: Can I define TAB with other character? #6351
    Yutaka Emura
    Keymaster

    EmUser wrote:
    I want to I can define Tab with other character, not only space, for example: when I press the keyboard Tab, Emedirot can input two SBC case. How can I do?
    Maybe you can set Tab/Indent another option except Enable Auto Indent and insert space for Tabs, such as: Insert defined character, So we can input another character, such as: ###, @@@, ㊣㊣㊣…etc.
    thanks!

    You can write a macro:


    document.write( "###" );

    then assign this macro to the TAB key. To assign keys, select Keyboard Map on the Help menu.

    in reply to: Add a few more items to make EmEditor pure genius #6338
    Yutaka Emura
    Keymaster

    dreftymac wrote:
    Greetings!

    EmEditor is a very smart product. I can tell the person who developed knew what he was after to make it as flexible and powerful as possible while still easy to use.

    EmEditor is almost at the level of Vim in terms of its power, and Textmate in terms of its “coolness”. I am surprised I haven’t heard about it before now.

    There are only a few things missing that will make EmEditor pure genius if they are added in:

    1) More GUI control types:
    There needs to be a way to use the “general purpose” input gui that is included with the Snippets plugin. EmEditor macros has the prompt dialog, and that is great for simple input boxes, but this extra control that comes with Snippets should be available in Emeditor core.

    Also, there needs to be a “history-based” GUI control that remembers what you have typed, available in macros as well. To see what I am talking about look at JEdit and see:
    http://www.jedit.org/users-guide/action-bar.html
    for an example.

    For another example of what I am talking about, open your Firefox browser and type in “about:config” … then type in the word “filter” and notice how the text is filtered as you type.

    2) Ability to make the Plugin Windows “dockable” (again, see JEdit for an example of how this is done).

    3) A bit more documentation for plugins, as well as the ability to write plugins in language besides C [e.g., script-based plugins].

    4) Ability to use Multiple Arbitrary Simultaneous Carets
    http://blog.macromates.com/2006/textmate-tricks

    The reason for these ideas is this: they allow EmEditor to handle things that cannot be easily done by writing a Macro — Macros can handle just about everything else (since you can use perl, python, ruby and javascript, which are all industrial-strength cross-platform solutions).

    Thanks for any feedback or comments.

    Thanks for your opinions. I looked at those links you provided.

    1) It is possible to use third-party COM objects, but I might consider additional GUI controls. Did you want “Snippets” grid control? 2) I didn’t want to make “dockable” because it can cause significant size increase in EmEditor.exe size. 3) I will add more information about plug-ins to the Help and also am creating tutorial videos. 4) the only way to enter multiple strings is to use vertical selection. I might consider more flexible ways in future versions. Thanks again!

    in reply to: customise SQL syntax #6335
    Yutaka Emura
    Keymaster

    Nufacik wrote:
    Hi Yutaka.

    Sorry if you dont understand me, may be it is becouse of my english… So, I try explain my question one more time and I will be more detailed. So, I want to use EmEditor for programming SQL codes (Oracle PLSQL). In this syntax people used to write keyword as uppercase. Like this example:
    PROCEDURE showtime
    IS
    CURSOR curTab
    IS
    SELECT table_name
    FROM user_table;
    nCounter NUMBER(6);
    BEGIN
    FOR recTab IN curTab LOOP
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(nCounter) || ‘ – table: ‘ || recTab.table_name);
    END LOOP;
    END;

    So, as can you see, keyword is putted as UPPERCASE words. And here is my question…
    How can I setup EmEditor for this functionality… I can switch on WordCoplete. OK… if I write keyword “begin”, word complete show me little dialog vith this words, which is in dialog as “BEGIN”. My cursor is still on end of the worg “begin”, in dialog is highlited word “BEGIN”. A can do 2 things.
    1. I push enter. EmEditor aplicate word from dialog and transform word “begin” to “BEGIN”. This is nice, its OK. I can write next code… But, I must entered every keyword, if I want have keyword as uppercase.
    2. I push space. EmEditor close word complete dialog, space is addet next “begin” and I continueing in progrmming.

    And I want to this:
    I starting write “begin”… EmEditor show wordcomplete dialog to hinting pissibilities… If I dont choose noone, nothing happen. BUT, if I push space, EmEditr automaticaly transform “begin” to “BEGIN”. Because I have turn on checkbox To UpperCase in Highlight(1) option. Is is like after every keyword highlight this word and manualy change to uppercase function… What are you thinking about this functionality. It will be posiible add this to highlight option of SQL syntax???

    I pray for this in EmEditor… :-D

    I am sorry it took a long time before I can finally answer to your question. If you want the SPACE key to behave just like ENTER key, go to Word Complete Properties (Right-click on the Word Complete button on the Plug-ins toolbar), select SQL and double-click, click Keyboard tab, and select Complete in Commands drop-down list, and press SPACE in the Press New Shortcut Key. I hope this helps.

    in reply to: EmEditor 8 beta 3 replace function #6333
    Yutaka Emura
    Keymaster

    stewcam wrote:
    I am finding that EmEditor 8 beta 3 replace function does not cope well with large files. I have been trying it on a 5 Mb file. Replace tasks involving thousands of items lead to the program freezing; sometimes even locking up the computer. Same file in NoteTab Pro is dealt with very quickly without any problem.

    EmEditor 8’s replace speed is much faster than previous versions, and faster than many text editors as we discussed in previous threads in our forums. However, there might be some exceptions like multiple-line terms and regular expressions. Can you please describe an example of your search term?

    in reply to: EmEditor Professional 8.00 beta 2 #6330
    Yutaka Emura
    Keymaster

    leo_zzz wrote:
    thanks a lot for your reply.
    may be i did not discribe clearly, i mean when using output bar when find in files, the hilite in document does not show……it seems abnormal….

    Can you describe how abnormal it is? I don’t see any highlight issues.

    in reply to: Focus did not return to EmEditor Warning #6329
    Yutaka Emura
    Keymaster

    joeabe wrote:
    When I returned to an open (cpp) file in EmEditor after modifying it in VS2008 I got the Warning “File changed by another program. Reload with changes?”. However the focus would not move to EmEditor and allow me to select Yes or No. This happend when all the text in the EmEditor window was still selected from a previous copy. I could scroll the selected (blue highlighted) text behind the warning by moving the mouse off the top or botton of the edit window but not select the warning window.

    Version 8.00 btea 2.

    I still can’t reproduce this issue, but maybe it is a Windows issue. If I reproduce this, I will let you know. Thanks!

Viewing 25 posts - 2,901 through 2,925 (of 3,701 total)