Forum Replies Created
- AuthorPosts
- StefanParticipant
Ah, I see.
Yes, I use always portable software only.
Thanks for explanation. So I pull back my above suggestion.
.
StefanParticipant.
Bad upgrade experience
I have upgraded to RC1 by overwriting my v13 beta12 files
(which had a valid v12 key).(But I guess it is the same with upgrading from v12?)
Immediately I got a message “You need a new key for v13.”
I denied visiting the web page for a new key yet
(while being in a customer’s network not to be used for private issues).Next I got a message “30 day trial period is over.”.
As I am not able to get my key right now I close the dialog
and my installation was downgraded to free version.(“Ctrl+Q > Upgrade” last only for three seconds. Then I get the above message again)
Suggestion:
If you found a valid older key, give the customer a grace period to upgrade the key to v13.No big problem for myself, as tomorrow I will have
my key with me, and for today I go back to my backup.Thank you for making EmEditor.
StefanParticipant.
EEID_SAVE_AS_LF (4107)
That method can be used by an plugin author.
It doesn’t tells that there has to be such a plugin already.But I guess what you want is already possible on default.
Just configure the wanted saving details…Check:
– Tools > Properties for xxx Configuration
– click at the [File] tab
– click at the [Saving…] button
– choose wanted “Return Method:”
CR+LF (Windows)
CR only
LF only (Unix)Does that work for you?
Line Enders EOL End of line breaks returns
May 31, 2013 at 1:25 pm in reply to: Empty space displayed after the end of file. How do I get rid of it? #11110StefanParticipant
PerhapsA) View > Line Numbers
or
B) View > Marks > End of File
or
C) Tools > Properties for ??? Configuration > [Display]
Outside of regions
Background Color > Custom > grey
.
StefanParticipanturlwolf wrote:
‘check for updates’ doesn’t work for betas, why?I guess because there is no update of the current version.
Only betas for a future newer version (upgrade).
And therefore a successfully ‘check for updates’
would not be a awaited result for most of the users..
May 31, 2013 at 11:52 am in reply to: Explorer context menu with portable version? Or export settings on nonportable version? #11106StefanParticipanturlwolf wrote:
an entry just under ‘open’ in the right click menu.
Even installing emeditor, I don’t get that.Any way to get it at the top of the tree, …?
Yes, you can use my method B) from above.
Best use the script to always have the right path.This will result in a context menu like:
The same as with NP++, but EmEditor even serves on folders ;-)
Tip: the string “Open in portable EmEditor”
can be edited to your likely,
e.g. to “Edit with EmEditor”.—
To have the SendTo EmEditor item at top, just change
the name of that shortcut as show above in picture..
StefanParticipantThat sounds like an automatically scrolling feature.
Isn’t that disturbing?
I think I have never seen this feature in EmEditor.
There are only this shortcuts
Alt+PageUp – move cursor at top of screen
CTRL+UP ARROW – Scrolls the document up by one lineHmm, but from that we can create an script
to move line with cursor into horizontal mid of screen:
////scroll line with cursor in horizontal mid screen
yPosCurr = document.selection.GetActivePointY( eePosView );
xPos = document.selection.GetActivePointX( eePosView );
editor.ExecuteCommandByID(4292); //Moves the cursor to the top of the current window.
yPosTop = document.selection.GetActivePointY( eePosView );
editor.ExecuteCommandByID(4293); //Moves the cursor to the bottom of the window
yPosBot = document.selection.GetActivePointY( eePosView );
yPosMid = parseInt(yPosTop + ((yPosBot - yPosTop) / 2) );
iDiff = parseInt( (yPosBot - yPosTop) / 2 );
if(yPosCurr < yPosTop){ iDiff += (yPosTop - yPosCurr);}
if(yPosCurr > yPosBot){ iDiff += (yPosCurr - yPosBot);}
if(yPosCurr > yPosMid){
for( i=1; i < iDiff; i++){
// Scrolls the document down by one line.
editor.ExecuteCommandByID(4171);
}
}else{
for( i=1; i < iDiff; i++){
// Scrolls the document up by one line
editor.ExecuteCommandByID(4170);
}
}
document.selection.SetActivePoint( eePosView, xPos, yPosCurr, false );
Hmm, that script is a nice feature. Could use this myself often.
But not what you are after, I understood.
I have added Ctrl+Alt+M to that script,
and now, whenever I had scrolled my cursor line
out of view, this will bring the line back to mid screen.
Nifty, thanks for idea :-DNow I can leave the cursor in the current line and use the
scroll bar to go to another place in the document to spot
some information, then pressing Ctrl+Alt+M scrolls back to
the line with the cursor.I wonder if this is not already implemented? I go RTFM again…
.
StefanParticipantzmeskalk wrote:
– search window preview (with line numbers
and click to go to the line in editor)(…)
Point 1 can be check-marked as solved I think.
Yutaka wrote:
Stefan > Display result
of “Find All” in current file
to output bar.Yutaka > You can use the “Find in Files” and
search only the current file with the Use Output Bar option.Stefan > Sorry, I don’t know how to do this.
In Find in Files dialog box,
by the File types dropdown list,
please click the “>” button,
then click “Current File”,
to show the current file name.You can then click “>” again
and click “Save as Default”
if you want to save this settings.That really works! Thank you Yutaka!
Note:
you must have an already existing file to let this work.
For just fresh created Untitled* documents this feature is greyed out.On an click at [Find] you will get a click-able list of lines with matched finds.
With “[X] Use Output Bar” enabled you will get that list in the “View > Output” -panel
With that option disabled you will get a new document with that output.If you click at the hyperlink in such a line you will be forwarded to that line in the corresponding file.
Example:
A search for “but” in zmeskalk will output:
H:TEMPUntitled.txt(1): I’m not sure that this feature aren’t implemented but I can’t find it:
H:TEMPUntitled.txt(6): – inverse delete (lines in line mode) – delete all but not matchesSolved, zmeskalk ?
.
StefanParticipantYutaka wrote:
In Find in Files dialog box, by the File types dropdown list, please click the “>” button, then click “Current File”,
unbelievable…
I am stupid, sorry.
I looked there several times and doesn’t see it till now.
(probably because it is greyed out for un-saved files like my test file)EDIT:
I meant not “un-saved files” as it,
but rather “not yet saved for the first time files”Thank you! I will try.
May 28, 2013 at 5:51 am in reply to: Explorer context menu with portable version? Or export settings on nonportable version? #11090StefanParticipant.
Explorer context menu for the EmEditor portable version:
A)
– create a shortcut of EmEditor.exe
– copy the shortcut
– open WinExplorer and enter ‘shell:sendto:
– paste the link into your sendto folder
From now on you can utilize
the explorer context menu > Send to > EmEditor.exe – ShortcutThat works even on folders which will open EmEditors file open menu.
EDIT:
Of course, EmEditor can do that for you too:
EmEditor Home - EmEditor Help - Dialog Boxes
- Customize dialog box > Shortcut tab
The Shortcut tab allows you to customize
settings related to the shortcuts.
[X] Add a shortcut to the "Send To" menu check box
In EmEditor, adds a shortcut
to the "Send To" menu in Explorer.
... and there are more...
– – –
B)
– assign EmEditor to all types of files in the Registry.Then you can right click a file and chose “Open in EmEditor”
Here is an example *.reg file to add this to the registry.
(apparently you have to adjust the path to EmEditor.exe.
Use double back slashes as you see in my example)Note: this for each user, not system wide.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareClasses*shellOpen in EmEditorcommand]
@="F:EmEditorEmEditor.exe CU "\%L""
To have that on folders too, you can use this combined version:
Windows Registry Editor Version 5.00
#Provide EmEditor for each file type:
[HKEY_CURRENT_USERSoftwareClasses*shellOpen in EmEditorcommand]
@="F:EmEditorEmEditor.exe "\%L""
#Provide EmEditor on folders:
[HKEY_CURRENT_USERSoftwareClassesFoldershellOpen in EmEditorcommand]
@="F:EmEditorEmEditor.exe "\%L""
We can utilize an script instead of such *.reg files to determine
the current EmEditor path and write that to the registry.
I think we can even do that from EmEditor Tools menu
since EmEditor provides now $(AppDir), $(AppDrive) variables already.Ohh, or simply a macro:
wsh = new ActiveXObject("Wscript.Shell");
regkey = "HKCUSoftwareClasses*shellOpen in portable EmEditorcommand";
strName = editor.FullName;
wsh.RegWrite( regkey, strName + " "\%L"", "REG_SZ");
alert("done");
No matter from which drive EmEditor is launched,
“Open with portable EmEditor” is always overwritten with currently right path.– – –
To complete this topic…
You can also assign EmEditor to some
file types to launch EmEditor by double clicking:EmEditor Help – Command Reference
– Tools category > Define Configurations commandStep-by-Step how to:
** Menu: Tools > Select Configuration > Define Configurations
** [Associations] button
** [Associate with EmEditor…]
** [Add]
** Extension [ txt ]
** [OK]** [Close]
** [OK]
** [Close]
– – –
To export settings on non-portable (installed) version:
You can export the registry key of an installed EmEditor version
from the registry to an *.reg file and import that file.reg on another PC.(take care about the path to EmEditor.exe again)
I think I have read that in this forum already once. A search may help.
e.g.
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=1471&forum=2Yutaka wrote:
Most settings are stored in the Registry.
HKEY_CURRENT_USERSoftwareEmSoft
and
HKEY_LOCAL_MACHINESOFTWAREEmSoft
You can use "Import and Export" on the Tools menu to export your settings.
That’s even better.
.
StefanParticipant.
Do you mean the behaviour reachable by F11 key?
EmEditor Home – EmEditor Help – Command Reference – View category
Full Screen commandDescription
Toggles the full screen mode.How to Run
Default Menu: View > Full Screen
All Commands: View > Full Screen
Toolbar:
Status Bar: None
Default Shortcut Key: F11.
StefanParticipantHi urlwolf.
Which version of EmEditor do you use?
For elder version I think you have to use find to highlight all occurrences? (not sure)
With newer versions you can use the “Marker” feature:
EmEditor Home – EmEditor Help – Features > Markers
EmEditor currently allows users to set highlight strings. However, in previous versions, there were several limitations,
such as the inconvenience of adding highlight strings temporarily,
that have been rectified in the new version.The new marker feature allows you to specify strings to highlight temporarily. (…)
The list of markers is displayed in the new Markers toolbar. (…)
(…)
The auto marker is a new feature to automatically select text that is the same as the selected text. The Auto Marker tab of the Customize Marker dialog allows you to specify details about the auto marker, such as retrieving the word at the cursor position, matching the word only, or case sensitivity.
With ‘auto marker’ enable, double click a word,
or hold the Ctrl key while clicking on a word,
to ‘Highlights all matches’“Markers” are highly configurable also. Check it out.
.
StefanParticipant.
I will answer here nevertheless on some topics to keep this together.
If more info is needed I will answer in the related post. Fine?** Display result of “Find All” in current file to output bar.
YE –> You can use the “Find in Files” and search only the current file with the Use Output Bar option.
Sorry, I don’t know how to do this.
YE –> Alternatively, you can use the Search plug-in.
The search plugin would be fine perhaps, but
a) it searches in all open documents and
b) flickers while switching from doc to doc.– – –
** Improvement of the zero-wide selection edit mode.
As this is a little bit more complex, I will answer in the related thread.– – –
** The $(AppDir), $(AppDrive), and $(Clipboard) parameters as ${} snippets equivalent.
YE –> I have already added this feature per your request if it means the External Tool properties.
That works fine for the external tools, but is missing at snippets plugin.
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=2206&forum=4– – –
** Edit > Advanced > Insert at Start/End of lines
YE –> You can select Edit > Selection Mode > Select Beginning/End of Lines, and then type text.
This feature was added per your request.Thank you very much!
I guess I should read the history too and not only the “announce new features” web page?EmEditor Home – EmEditor Help – Command Reference – Edit > Select Beginning of Lines command
I have now added shortcuts to this commands, and it works very well.
Ctrl+Alt+S(tart of line)
Ctrl+Alt+E(nd of line)This is a no-GUI implementation, and so there is no history of last inserts.
But it works, good idea this way too, well done. Thanks.– – –
May 27, 2013 at 11:06 am in reply to: Code Navigation: GoBack/GoForward + "Jump to a Previous View" #11079StefanParticipant.
Yutaka pointed me to the right direction. Thanks Yutaka!
Stefan:
** Navigation: GoBack/GoForward in edit history is missed.Yutaka wrote:
Back and Forward commands are already included in EmEditor.
You can display these commands as the Toolbar, and also you can
use the default shortcut keys (ALT + LEFT and ALT + RIGHT).I have searched the help and found this:
EmEditor Home – EmEditor Help – Command Reference – Edit category > Forward command
Description: Moves the cursor to the next position.
Default Keyboard Shortcut: ALT + RIGHTEmEditor Home – EmEditor Help – Command Reference – Edit category > Back command
Description: Moves the cursor to the previous position.
Default Keyboard Shortcut: ALT + LEFTI don’t had this shortcuts assigned?!
I think it is because I only update
with new files but still use my old settings?Anyway, I have now assigned shortcut keys my own and tested this feature.
So long I have found:
1) I miss a gui to preview the last line numbers and line text.
2) Also I miss a visible indicator to see the cursor after moving.
3) Next I am not sure if I like that this feature works global
for all open documents instead of the current working doc only.For my first two points I have created a script
(based on “build-in” snippet “Clipboard History” to help my self:
//Moves the cursor to the previous position.
//Script to collect the last ten positions and provide a menu to go there.
//Based on Yutakas' snippet "Clipboard History"
// NOTE: THIS DOES NOT WORK reliable yet, I have to investigate more.
menu = CreatePopupMenu();
i = 0;
LastLinesArray = [];
do {
editor.ExecuteCommandByID(4597);//Moves cursor to prev pos.
yPos = document.selection.GetActivePointY( eePosLogical );
LastLinesArray[i] = yPos;
str = document.GetLine( yPos );
str = str.substr( 0, 40 );
menu.Add( yPos + ':t' + str, i + 100 );
i++;
} while( i < 11 );
result = menu.Track( 0 );
if( result != 0 ) {
yPos = LastLinesArray[result -100];
document.selection.SetActivePoint( eePosLogical, 1, yPos );
document.selection.WordRight( 1 ); //visible indicator only
}
But it doesn’t work 100\% correctly.
** for each call it provides other (elders?) results
** it jumps between open documents
** I don’t know how far back the history goes
and what the script will do if I call an empty entry.
** I jumps only backwards, forwards is not implemented yet in my script.More research to do ;-)
.
StefanParticipant.
I have seen this feature is implemented.
(don’t know since when, but found it in betas of v13)See “Tools > All Commands… > Tools > Repeat Last Command”
I have set this to shortcut Alt+R now
Found it in the help:
EmEditor Home – EmEditor Help – Command Reference – Tools category
Repeat Last commandSummary
Repeat last command.Description
Repeat last command.How to Run
Default Menu: None
All Commands: Tools >Repeat Last Command
Toolbar: None
Status Bar: None
Default Shortcut Key: CTRL+Shift+G
Plug-in Command ID
EEID_REPEAT_LAST_COMMAND (3846)
Macros
[JavaScript]
editor.ExecuteCommandByID(3846);[VBScript]
editor.ExecuteCommandByID 3846StefanParticipantYutaka wrote:
I would also like to hear from other users about this topic.
.
I hope I get was were suggested here correctly.
I myself use EmEditor also often to search, manipulate
and extract parts of many kinds of log files.SO this are my opinions:
1.)
As you know I like “[ ] Use Output Bar” to get a list
of clickable LINES with matches for the find dialog too.
(I was not able to utilize “Find In Files” for that,
and it make more sense to have that in the ‘normal’ find dialog too anyway)2.)
An kind of “live preview” in the output bar of what the search expression would match would be nifty.
But there are other ways also already. Not as nifty, but…. ok.An option “extract matches to output bar” would be handy and welcome.
The output bar should have an context menu option “copy selected to new document”
(Instaed of the “Extract All” button)
In the new document we can further work on extracted items.3.)
The find dialog could well need options to decide what to extract:
– whole lines with found matches
– the matches itself onlyThat can be achieved also by utilizing regular expressions.
That is why I had suggested to add an favorite menu
to the Find/Replace dialog to store nifty regexs’– the respective negation of the above (extract everything not matched)
That can be achieved also by utilizing scripts.
But that is an often needed features so I would suggest
to add a checkbox “[ ] Find opposite”4.)
To add this all to the find dialog I would suggest
to put some of that options to the [Customize] settingsas that are mostly set-and-forget options, e.g.:
[ ] Move to Start/End of Document
[ ] Close when Finishedor to rarely used options
[ ] Search All Open Documents
[ ] Use Output Bar– – –
Note: ‘utilizing bookmarks’ is a nice and nifty feature,
but if you had used boomarks already in the document
I don’t want to add more bookmarks from searching.I want to add that a few of my wishes to add some additional macro commands
are meant to provide an macro to cover some, if not all of this above issues ;-).
StefanParticipant.
Hi Yutaka,
if you think it is bloat and not necessary, it is fine for me too.
I only want to make suggestions to make working with EmEditor easier.
As for example with the JavaScript date object,
the user have to have programming skills or search
the net to see how to accomplish to get an simple date or time.I on my own know enough to help myself.
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=1863&forum=10– – –
Same for
document.BaseName
document.Extension
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=1862&forum=10– – –
And document.SaveAs() was meant as a way to save current open document
under a new name (from script, without any dialog)
while keeping current doc with current name still open.document.SaveAs( [ strNEWName ] );
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=1865&forum=10OK, not really needed, but for convenience only.
– – –
Perhaps an alternative would be to cover some of this as information only in the help?
(If I can support you here… just contact me by mail please)
On the other hand, having dedicated macro objects for that
would help to provide scripting code with fewer lines
instead of having the need to write the needed helper functions too.– – –
I want to explain more of my suggestions but don’t know if that would be to much now?
If I can help you in any way, please let me know!
Thank you.
.
StefanParticipant.
Thanks for your feedback :thumpsup: :-) Very appreciated.
I don’t want a bloated program either.
So I think I suggestion only ‘basic’ features I miss
to help myself and others writing better scripts
to support the EmEditor community and myself.I don’t think I have listed features who would
much increase the file size or loading time
but some who would increase usability.
(so I let out e.g. the “more dialog-features for scripts” wish)For example I think there are date and time macro functions missed.
I know (and have provided code already) how to utilize JavaScript to get what I want.
But there should be such basics for easy access for average users too.Thanks for providing hints on some topics… I will follow them and check them out.
(Oohh: “Select Beginning/End of Lines”… I have never seen this announced? Sorry.)For other topics I will response in the related threads later the next weeks.
Thanks for feedback and developing EmEditor!
.
StefanParticipant.
Old request for the Find/Replace Dialog:
“[X] Go Out Of The Way” option.
Another idea is:
“[X] Transparency On Losing Focus”
If I click into the document,
the Find and/or Replace Dialogue
lose the focus and went transparency,
so I can see if the searched text
is just behind the dialog box. (Which appears often).
May 21, 2013 at 3:01 pm in reply to: Let us create better dialogs to ask the user for his options. #11057StefanParticipantBasically it works!
#language = "VBScript"
set obj = CreateObject("SeraphyScriptDialog")
set frm = obj.CreateForm()
frm.FormTitle = "Modify Lines"
i1 = frm.DefineLabel("For every line")
i2 = frm.DefineEdit("Prefix Lines: ")
i4 = frm.DefineEdit("Append Lines: ")
i12 = frm.DefineButton("OK;CANCEL")
'OK= return code 3
'Cancel = return code 4
ret = 0
do
ret = frm.ExecuteForm()
loop while(ret = 0)
if(ret=3) Then
'//Insert in front of selected lines
Leader = frm.Value(i2)
document.selection.Replace "^",Leader, eeReplaceSelOnly or eeReplaceAll or eeFindReplaceRegExp
'//Insert to the end of selected lines
Trailer = frm.Value(i4)
document.selection.Replace "$",Trailer, eeReplaceSelOnly or eeReplaceAll or eeFindReplaceRegExp
end ifNote:
SeraphyScriptDialog.dll
or
SeraphyScriptDialogx64.dll
have to be reistered as COM before.Works on Win7 64-bit for me.
StefanParticipantYutaka wrote:
Yes! You can use eeFindSelectAll, and it is already implemented on the latest beta version.Perfect, thanks.
//needs EmEditor Professional v13 beta 10 (12.9.9)
findstring = prompt("text to find","");
ret = document.selection.Find("(?-s)^.*"+findstring+".*$",eeFindSelectAll | eeFindReplaceRegExp);
if(ret==0){status = "Nothing found"; alert("Nothing found: " + findstring);}.
StefanParticipantHistory wrote:
“The Find All button was added to the Find dialog box”
Yutaka, can there please be a eeFindAll macro command?
document.selection.Find(“WORD.*”,eeFindAll | eeFindReplaceRegExp);
Thanks.
.
StefanParticipantzmeskalk wrote:
– search window preview (with line numbers and click to go to the line in editor)
To display all found lines as click-able links in the output bar
works only with ‘Find in files’ method.
Unfortunately this doesn’t works with ‘normal’ single file find method.
I have missed this myself.I think the way EmEditor goes is utilizing [Bookmark All]
And then use the bookmark commands to jump between lines.
(don’t ask me what to do if you already used bookmarks for other issues in that file. You have to clear them beforehand.)zmeskalk wrote:
– search in line mode (select whole line when match found on line)
One would use regex find to match your search string and everything around I guess:
(?-s)^.*string to find.*$zmeskalk wrote:
– copy all matches (or lines in line mode) to the clipboard
Press Ctrl+C after search is done.
zmeskalk wrote:
– delete all matches (or lines in line mode)
Press Del key after search is done.
zmeskalk wrote:
– inverse delete (lines in line mode) – delete all but not matchesAgain you can go the bookmark road.
More bookmark commands are hidden in the “Tools > All Commands… >> Edit > Bookmarks” menu.
History wrote:
EmEditor Professional v13 beta 7 (12.9.6) released!
Today, we are releasing EmEditor Professional v13 beta 7 (12.9.6).Updates from beta 6 include:
– Cut Bookmarked Lines, Copy Bookmarked Lines, and Select Bookmarked Lines commands were added.
– The Prompt when End of Document is Reached check box was added to the Search tab of the Customize dialog box.
– The Save Settings check box was added to the Open dialog box.
– When a user clicks on the left edge or the line numbers, a menu related to bookmarks appears now.See http://www.emeditor.com/modules/newbb/viewforum.php?forum=12
You can also use the new “Quick Launch” feature in v13, see
http://www.emeditor.com/modules/feature1/rewrite/tc_41.html
to find all bookmarks commands.So you could use:
* “Edit > Bookmarks > Clear”
* Search
* [Bookmark All]
* Invert Bookmarks
* Delete bookmarked lines
or
* Extract to new file
*Tip:
You can modify every menu or create a pop-up menu
to collect all wanted commands to a single place.
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=1879&forum=19.
May 16, 2013 at 5:40 pm in reply to: Let us create better dialogs to ask the user for his options. #11048StefanParticipantYutaka wrote:
Hello,I am very sorry for late responses.
Thanks for feedback.
Yutaka wrote:
I heard you can add dialog boxes using COM object
such as SeraphyScriptDialogThat functions are exactly what I have searched for for years.
Many thanks for that link.
I have never found something like that.Unfortunately it seams some parts are hard coded in japanisch language ( see browse folder button and the path delimiter Y )
Also since I have to register the com object it is not fully portable. But I guess that de-/registering can be done by a script too.
Only it is not that nifty to share script with others if they have to register a dll first. Also they need admin rights.
And I have not found any help in english language till now.
I have to experiment a bit with that.
Thank you much!
.
StefanParticipant.
- AuthorPosts