Forum Replies Created
- AuthorPosts
Yutaka Emura
KeymasterAlso, 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!
Yutaka Emura
KeymasterFlint 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.
Yutaka Emura
KeymasterPaperPlate 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!
Yutaka Emura
KeymasterStefan wrote:
EmEditor Help – EmEditor Macro Reference – DirectivesI 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!
October 13, 2008 at 5:13 am in reply to: is it possible to identify and run every single plugin command from within a macro? #6394Yutaka Emura
Keymasterdreftymac 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.
October 12, 2008 at 5:46 pm in reply to: is it possible to identify and run every single plugin command from within a macro? #6392Yutaka Emura
Keymasterdreftymac 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.
Yutaka Emura
KeymasterStefan 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.msiSorry, I just updated the link.
Yutaka Emura
Keymasteriisisrael 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.
Yutaka Emura
Keymasterviettuan 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.
Yutaka Emura
Keymasteriisisrael 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 );
Yutaka Emura
KeymasterStefan wrote:
EmEditor 8 beta3
FileDescription : EmEditor
FileVersion : 7, 9, 9, 0
ProductVersion : 7, 9, 9, 0
Creation Date : 02/10/2008 17:52:24I 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 = 0x200000Do 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!
Yutaka Emura
Keymasterzhouzh2 wrote:
Box Select issue:
http://www.live-share.com/files/355464/bug.swf.htmlI 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.
Yutaka Emura
KeymasterToadLoadin wrote:
Strange display of indent Guides while box editing:OK. it will be more natural in the next version.
Yutaka Emura
KeymasterI 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.Yutaka Emura
Keymasteryongfa365 wrote:
Search all open documents bugregular expressions bug :
http://zixunchaoshi.com/test/bug1.swfreplace bug:
http://zixunchaoshi.com/test/bug2.swfI will fix both cases by next beta. Thanks!
Yutaka Emura
Keymasterowilsky 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 menuEmEditor 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.
Yutaka Emura
Keymasterstewcam 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!
Yutaka Emura
KeymasterNufacik 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!
Yutaka Emura
KeymasterStefan 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 = nModeI try
nMode = Object.WrapMode
alert nModeBut 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();
Yutaka Emura
KeymasterEmUser 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.
Yutaka Emura
Keymasterdreftymac 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-tricksThe 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!
Yutaka Emura
KeymasterNufacik 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.
Yutaka Emura
Keymasterstewcam 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?
Yutaka Emura
Keymasterleo_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.
Yutaka Emura
Keymasterjoeabe 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!
- AuthorPosts