Forum Replies Created
- AuthorPosts
Stefan
ParticipantGood Idea, I like that too.
Also very nifty for quick saving a few ‘Untitled’ files without
overwriting the last one or thinking about another temp name :-)
My ideas about this topic:
Customize Tabs
Unsaved Label: | Untitled | Untitled # | First 10 signs from first line
Additionally I can imagine:
From Tab context menu: “Set tab Label” -> to individual user content
From Tab context menu: “Set tab color” -> sub menu with the ten markers colors to choose from.
Just some ideas.
Thank you for making EmEditor ;-)October 26, 2015 at 1:01 pm in reply to: Automatically Name Untitled Docu: Pls, Increase taken string length to 99 chars. #20431Stefan
ParticipantThank you very much for reply and improvement.
Now this feature makes much more sense to me.Stefan
ParticipantBTW, Yutaka,
If I go again into “Tools > Properties All Configuration >[General]”, the “Wrap by: ” field shows nothing. But it works by wrapping at 80 chars.
If I go into . . . . “Tools > Properties Current Configuration >[General]”, the “Wrap by: ” field shows “Specified Characters” as expected.
Me think the “Wrap by: ” on “Tools > Properties All Configuration >[General]” should show the current chosen setting too? Instead of nothing.
.Stefan
ParticipantI think I found the solution .
Nothing to do with version or bittness, but possible wrongly use of configuration?
(Good example that’s always a good idea to provide
as much details as possible on such questions)
Tested on: 15.4.0 beta 2 / 32-bit portable on 64-bit Win7
Test 1:
Tools > Properties All Configuration
[Wrap]
[x] Word Wrap
[_] Wrap after marks
[X] Wrap These CharactersOpen a file with long lines.
The lines are NOT wrapped-up.
Test 2:
Tools > Properties All Configuration
[General]
Wrap by: Specified CharactersOpen a file with long lines.
The lines ARE wrapped-up.
Now I only have to find out which options is for which purpose…..
HTH?
Stefan
ParticipantThanks for clarifying! To help the author locate that problem, he may have some more need for details:
Which was the EmEditor version and bitness architecture (32/64) this works for you?
Which version and bitness do you use now you got this problem with?
Do you have EmEditor installed or do you use the portable version?
On which operation system (XP/W7/W8/W10) ?Thanks for your support.
Stefan
ParticipantPlease excuse my ignorance, but what exactly is “””The wrap-up function””” ?
Can you point to some menu entry or help page please?
Or explain with more details and what you do.Thanks.
October 7, 2015 at 9:52 am in reply to: Option to adjust the Date/Time format (Edit > Insert > Time and Date) #20372Stefan
Participanto.O Uhh? Who had guessed that ;-D
So I am going now to “Tools > Customize Menus…” > Main Menu > [+]-&Edit
and modify my menu from “Time and Date” to “Date and Time”….. (and there is even a default shortcut: Shift+F5 to insert Date/Time)
Thanks :thumpsup:October 7, 2015 at 4:25 am in reply to: Option to adjust the Date/Time format (Edit > Insert > Time and Date) #20370Stefan
ParticipantHi Yutaka.
WOW, thanks, but…
System default:
10:06 07.10.2015
User adjustment, leads to Time Date order:
10:07:13 2015-10-07
User wanted order (Date Time) is not possible:
2015-10-07 10:07:13
Try with “date” field only (yyyy-MM-dd HH:mm:ss)
is not working AND leads to a leading space:
2015-10-07 HH:mm:ss
How can I use Date first, Time second? > 2015-10-07 10:07:13
May I suggest to provide ONE single Date-Time field only please,
where the user can enter the whole string as he needs, like:
Date/Time Format———————
[_] Use System Format
[yyyy-MM-dd, dddd HH:mm:ss ]v]
————————————–
Thank you for making EmEditor.August 24, 2015 at 4:57 am in reply to: Option to adjust the Date/Time format (Edit > Insert > Time and Date) #20326Stefan
ParticipantHi Yutaka,
thank you very much for your reply.
As you may be aware already, I on my own know how to craft such scripts.
(https://www.emeditor.com/forums/topic/wish-date-day-date-month-date-year-date-hour-date-min/)
But that is not very user friendly and too complicated for average user.
(Also, if one would use a script, that menu item would become useless and only waste space)
And I can hardly imagine that the implementation of such (absolutely default) feature
would bloat EE that much and take that much space on executable and settings store?
But it’s your decision. I can only point you to need improvements from my POV.
(But inserting the default format like “13:53 24.08.2015” is useless for me, so I will always use a macro for that)
Anyway…
Thanks for making EmEditor !Stefan
ParticipantThe extension has nothing to do with the content. It had could be named UserDic.TXT also.
But the author decided to make it look more “magic” and/or mark it as “special” file that way, so the user leave it alone.Stefan
ParticipantHi, you can try “Quick Launch” tool for that:
“Tools > All Commands > Tools > Quick Launch”
Type in wanted shortcut, like “ctrl” plus “+”-sign [plus wanted letter]Something like ctrl+f4 or ctrl+L, or ctrl+shift+L … and wait an second, till the list is filtered.
What to type in, depend on your language.
For English you can type “ctrl”, “shift” and “alt”. Also “End”, “Home”, “Del”, “Back”, F1, F2…etc
For German that would be “strg”, “umschalt” and “alt”. Also “Ende”, “Pos1″, Entf”, “Rück”,…. etcStefan
ParticipantHi Bob,
you can search any web page by utilizing g00gle, best with key word “site:”Like:
sticky vertical site:emeditor.com/help/
user dictionary site:emeditor.com/Stefan
Participant(((just search with g00gle))) :
https://www.emeditor.com/forums/topic/export-language-spelling-files-with-new-words/
The user dictionary is saved in %APPDATA%\Emurasoft\EmEditor\Spell\UserDic.bin as UTF-16LE without signature.
–
Or for portable mode: …\your path\to\EmEditor\AppData\Spell\UserDic.bin
Stefan
ParticipantYou can use any command line tool, like “HTML Tidy” (http://tidy.sourceforge.net/)
How-toDownload, unpack (I have a sub folder “Tools” in my EmEditor folder)
and add a EmEditor Tool:
———————————————————————
Tools > External Tools > Customize Tools > New
Title: HTML Tidy -xml
Command: .\Tools\HTMLTidy\tidy_(25mar2009)\tidy.exe
Arguments: -xml -i -q “$(Path)”
[X] Use Output Bar
Input: Document
Output: Replace Document
OK
OK
———————————————————————For example see for more:
http://tidy.sourceforge.net/docs/tidy_man.html
http://xmlwriter.net/user_tools/tidy.shtml(Currently I don’t know how to just replace the document without opening the output bar ???)
Open your file. run the new tool, close Output bar, done.
HTH? ;DStefan
ParticipantThanks Yutaka, that works.
If one don’t know where to find that commands, he may want to follow this steps:
Start “Tools > All Commands > Tools > Quick Launch”
Search for “next cell”
Right click “Next Cell” > choose “Properties”
You will see Configuration dialog: Tab:Keyboard / Category:Edit / Command:Next Cell
Here you can assign the wanted keyboard key-combination.
Please note that that may be the configuration for ONE file type only (as e.g. *.txt or *.csv, or what ever you had currently open).
If you want to add a shortcut to another file-type, or to common configuration,
then close the dialog and open the wanted one from “Tools > Properties for ??? Configuration”
HTH?Stefan
ParticipantOf course, now you explain it, the feature description makes sense. Now I feel silly.
Thank you.Stefan
ParticipantWhat is “””Adjust Separator Positions Automatically””” good for? What does this feature?
Stefan
ParticipantEncrypt-DEcryption.jsee v0.01 – EmEditor 15 – 2015-06-26 by Stefan
//Encrypt-DEcryption.jsee v0.01 - EmEditor 15 - 2015-06-26 by Stefan WshFSO = new ActiveXObject( "Scripting.FileSystemObject" ); strFullName = document.FullName; if(strFullName==""){ alert("Sorry, we don't work on non-existent document. Please save it first.\n\nScript quits here."); quit(); } strPath = fPathName(document.FullName); strName = document.Name; strBase = fBaseName(strName); strExte = fNameExte(strName); strPaBa = strPath+"\\"+strBase; strNewName = strPath+ "\\" + strBase + "_Backup." + strExte; strEEFolder = fPathName(editor.FullName); strDecryptedName = strPaBa; if(strExte != "EEE") { vUserAnswer = confirm("Seems not to be an encrypted file,\nor at least no EEE Extension?\n\nStill continue?"); if(!vUserAnswer) quit(); } if (!document.Saved){ alert("Sorry, we don't work on un-saved document.\nPlease save it first.\n\nScript quits here."); quit(); } strDecryptedName = prompt("Save decrypted file as:", strDecryptedName); if(WshFSO.FileExists(strDecryptedName)) { vUserAnswer = confirm("Already existend. Overwrite?\n\n"+strDecryptedName); if(!vUserAnswer) quit(); } /* Need thirs-party utility: MySecret Blowfish Encryption Utility - Version 3.1.1 Released 9 June 2007. Freeware command-line encryption utility - http://www.di-mgt.com.au/mysecret.html Copyright (C) 2002-7 DI Management Services Pty Limited ABN 78 083 210 584 Sydney, Australia. www.di-mgt.com.au. All rights reserved. */ //MySecret -d -p "my pass phrase" -i infile -o outfile //-e|-d force Encrypt/Decrypt pwd = prompt("Pass phrase to decrypt:",""); if(!pwd) quit(); cmd = strEEFolder + "\\Tools\\MySecret.exe -d -p " + pwd; cmd = cmd + " -i " + strFullName + " -o " + strDecryptedName; WshShell = new ActiveXObject( "WScript.Shell" ); WshShell.Run(cmd); sleep(500); if(WshFSO.FileExists(strDecryptedName)) { editor.NewFile(); //document.close(); //close current encrypted file editor.OpenFile(strDecryptedName); }else{alert("Error. "+strDecryptedName+" not found." );} //-------------------------------- function fPathName(str) { if(str.lastIndexOf("\\") != -1) path = str.substring(0, str.lastIndexOf("\\")); return path; } function fBaseName(str) { if(str.lastIndexOf(".") != -1) base = str.substring(0, str.lastIndexOf(".")); return base; } function fNameExte(str) { if(str.lastIndexOf(".") != -1) exten = str.substring(str.lastIndexOf(".")+1); return exten; }
Stefan
ParticipantSomething like this I had in mind:
Encrypt-Encryption.jsee v0.01
//Encrypt-Encryption.jsee v0.01 - EmEditor 15 - 2015-06-26 by Stefan WshFSO = new ActiveXObject( "Scripting.FileSystemObject" ); strFullName = document.FullName; if(strFullName==""){ alert("Sorry, we don't work on non-existent document.\nPlease save it first.\n\nScript quits here."); quit(); } if (!document.Saved){ alert("Sorry, we don't work on un-saved document.\nPlease save it first.\n\nScript quits here."); quit(); } strPath = fPathName(document.FullName); strName = document.Name; strBase = fBaseName(strName); strExte = fNameExte(strName); strPaBa = strPath+"\\"+strBase; strNewName = strPath+ "\\" + strBase + "_Backup." + strExte; strEEFolder = fPathName(editor.FullName); if(strExte=="EEE") { vUserAnswer = confirm("*.EEE file detected. Already encrypted? Encrypt it again?"); if(!vUserAnswer) quit(); } strEncryptionName = strFullName + ".EEE"; strEncryptionName = prompt("Save encrypted file as:", strEncryptionName); if(!strEncryptionName) quit(); if(WshFSO.FileExists(strEncryptionName)) { vUserAnswer = confirm("Already existend. Overwrite?\n\n"+strEncryptionName); if(!vUserAnswer) quit(); } /* Need thirs-party utility: MySecret Blowfish Encryption Utility - Version 3.1.1 Released 9 June 2007. Freeware command-line encryption utility - http://www.di-mgt.com.au/mysecret.html Copyright (C) 2002-7 DI Management Services Pty Limited ABN 78 083 210 584 Sydney, Australia. www.di-mgt.com.au. All rights reserved. */ //MySecret -e -p "my pass phrase" -i infile -o outfile //-e|-d force Encrypt/Decrypt pwd = prompt("Pass phrase to encrypt:",""); if(!pwd) quit(); cmd = strEEFolder + "\\Tools\\MySecret.exe -e -p " + pwd; cmd = cmd + " -i " + strFullName + " -o " + strEncryptionName; WshShell = new ActiveXObject( "WScript.Shell" ); WshShell.Run(cmd); sleep(500); if(WshFSO.FileExists(strEncryptionName)) { editor.NewFile(); //document.close(); //close current plain file editor.OpenFile( strEncryptionName ); }else{alert("Error. "+strEncryptionName+" not found." );} //-------------------------------- function fPathName(str) { if(str.lastIndexOf("\\") != -1) path = str.substring(0, str.lastIndexOf("\\")); return path; } function fBaseName(str) { if(str.lastIndexOf(".") != -1) base = str.substring(0, str.lastIndexOf(".")); return base; } function fNameExte(str) { if(str.lastIndexOf(".") != -1) exten = str.substring(str.lastIndexOf(".")+1); return exten; }
Stefan
ParticipantCleaned-up Update:
strFullName = document.FullName;
strPath = fPathName(document.FullName);
strName = document.Name;
strBase = fBaseName(strName);
strExte = fNameExte(strName);
strPaBa = strPath+"\\"+strBase;
strNewName = strPath+ "\\" + strBase + "_Backup." + strExte;
strEEFolder = fPathName(editor.FullName);
strMyTool = strEEFolder + "\\Tools\\SubFolder\\application.exe";function fPathName(str)
{
if(str.lastIndexOf("\\") != -1)
path = str.substring(0, str.lastIndexOf("\\"));
return path;
}
function fBaseName(str)
{
if(str.lastIndexOf(".") != -1)
base = str.substring(0, str.lastIndexOf("."));
return base;
}
function fNameExte(str)
{
if(str.lastIndexOf(".") != -1)
exten = str.substring(str.lastIndexOf(".")+1);
return exten;
}
Stefan
ParticipantAnother piece of example code, related to the above one, for all who could need it:
strName = document.FullName;
strBase = fBaseName(document.Name);
strExte = fNameExte(document.Name);
//strNewName = strBase + "_Backup." + strExte;
strEEFolder = fPathName(editor.FullName);function fPathName(str)
{
if(str.lastIndexOf("\\") != -1)
path = str.substring(0, str.lastIndexOf("\\"));
return path;
}
function fBaseName(str)
{
if(str.lastIndexOf(".") != -1)
base = str.substring(0, str.lastIndexOf("."));
return base;
}
function fNameExte(str)
{
if(str.lastIndexOf(".") != -1)
exten = str.substring(str.lastIndexOf(".")+1);
return exten;
}
Stefan
ParticipantSame for me. v15.1.5, 32-bit portable.
editor.OpenFile( strFile )
didn’t work but give errorif I call that command
from within a script
with enabled ‘File Opened’ Event.
Dummy code f.ex.:OnFileOpenedEvent.jsee
if(strFileExt==”XML”)
editor.OpenFile( strOtherExistentFile )
Please assist.Stefan
ParticipantAhh, and I have to set up my own before added Configurations again,…. or I just copy it over from my old “eeConfig.ini” ;-)
Stefan
ParticipantOK, fixed.
I had to change
“OutlineViewLevel=0”
to
“OutlineViewLevel=1”
But still not worked for XML…though
So best is probably to just use the “eeConfig.ini” file provided in the downloaded ZIP archive.Now all fixed.
TXT, INI and XML Outline works.- AuthorPosts