Forum Replies Created

Viewing 25 posts - 51 through 75 (of 353 total)
  • Author
    Posts
  • in reply to: Untitled name uniqueness #20435
    Stefan
    Participant

    Good 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 ;-)

    Stefan
    Participant

    Thank you very much for reply and improvement.
    Now this feature makes much more sense to me.

    in reply to: wrap up function #20408
    Stefan
    Participant

    @netsking
    Did you worked that out now?

     
    .

    in reply to: wrap up function #20406
    Stefan
    Participant

    BTW, 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.
     
     
    .

    in reply to: wrap up function #20405
    Stefan
    Participant

    I 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 Characters

    Open a file with long lines.
    The lines are NOT wrapped-up.
     

    Test 2:
    Tools > Properties All Configuration
    [General]
    Wrap by: Specified Characters

    Open a file with long lines.
    The lines ARE wrapped-up.
     
     

    Now I only have to find out which options is for which purpose…..
     

    HTH?

    in reply to: wrap up function #20403
    Stefan
    Participant

    Thanks 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.

    in reply to: wrap up function #20400
    Stefan
    Participant

    Please 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.

     

     

    Stefan
    Participant

    o.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:

    Stefan
    Participant

    Hi 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.

    Stefan
    Participant

    Hi 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 !

    in reply to: How to search the online edition of EmEditor Help #20306
    Stefan
    Participant

    The 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.

    in reply to: find function(s) by entering shortcut #20304
    Stefan
    Participant

    Hi, 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”,…. etc

     

    in reply to: How to search the online edition of EmEditor Help #20303
    Stefan
    Participant

    Hi 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/

     

    in reply to: How to edit user additions to the dictionary #20302
    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

     
     

    in reply to: xml without line breaks #20291
    Stefan
    Participant

    You can use any command line tool, like “HTML Tidy” (http://tidy.sourceforge.net/)
     
    How-to

    Download, 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? ;D

    in reply to: CSV files: keyboard shortcut to jump column-wise #20284
    Stefan
    Participant

    Thanks 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?

    in reply to: EmEditor v15.2.0 beta 3 #20258
    Stefan
    Participant

    Of course, now you explain it, the feature description makes sense. Now I feel silly.
     
    Thank you.

    in reply to: EmEditor v15.2.0 beta 3 #20248
    Stefan
    Participant

    What is “””Adjust Separator Positions Automatically””” good for? What does this feature?

    in reply to: File Encryption #20216
    Stefan
    Participant

    Encrypt-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;
    }
    

     

    in reply to: File Encryption #20215
    Stefan
    Participant

    Something 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;
    }
    

     

    in reply to: Wish: document.BaseName + document.Extension #20214
    Stefan
    Participant

    Cleaned-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;
    }

    in reply to: Wish: document.BaseName + document.Extension #20213
    Stefan
    Participant

    Another 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;
    }

    in reply to: Help needed with macro – editor.openfile #20212
    Stefan
    Participant

    Same for me. v15.1.5, 32-bit portable.

    editor.OpenFile( strFile )
    didn’t work but give error

    if 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.

    in reply to: The Outline feature doesn't worked for me #20211
    Stefan
    Participant

    Ahh, and I have to set up my own before added Configurations again,…. or I just copy it over from my old “eeConfig.ini” ;-)

    in reply to: The Outline feature doesn't worked for me #20210
    Stefan
    Participant

    OK, 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.

     

Viewing 25 posts - 51 through 75 (of 353 total)