Forum Replies Created

Viewing 25 posts - 76 through 100 (of 140 total)
  • Author
    Posts
  • Patrick C
    Participant

    Welcome to the regex kitchen stew (semi serious; regex seems to drive most people I know either mad or desperate or both)

    Anyway one possible RegEx for finding 2 or 4 but not 24 is:
    (2(?!4)|(?<!2)4)

    Which works on
    1
    2
    3
    09
    4
    5
    24
    51
    1,2,3,09,4,5,24,51,4,2,42,8,4,6,2,8
    2
    4

    To get an idea on what this does
    (a|b)
    finds either a or b, where
    a = 2(?!4) finds 2 without a trailing 4
    b = (?<!2)4 finds 4 without a leading 2

    Note that I’m not a regex guru.

    Patrick C
    Participant

    I’m really short on time and its not the complete answer, but the regex for finding 2 or 4 is:
    [24]

    This will however, select only one of the characters at a time.

    Patrick C
    Participant

    Tools → Customise → Workspace → Automatic Workspace: Save, Restore and Keep Undo Information, and No Prompt to Save Files
    http://www.emeditor.org/en/dlg_customize_workspace_index.html

    in reply to: An option to change Toolbar animation #25853
    Patrick C
    Participant

    Interesting I haven’t got this behaviour.

    Have you tried setting
    Tools → Customise Menus… → Delay time
    to 0.0 seconds ?

    Cheers
    Patrick

    in reply to: Selecting Multiple Columns in CSV #25546
    Patrick C
    Participant

    Thank you Yutaka!

    in reply to: highlight or marked "in" "for" "not" etc #25534
    Patrick C
    Participant

    1) Select a configuration of your liking (Tools → Select Configuration → someConfiguration)
    2) Select Tools → Properties for current configuration
    3) Under Highlight(1) hit export.
    This will give you an example file

    color=1,2,3,…
    refers to Tools → Properties for current configuration → Display → Specify part list → Highlight(1,2,3,… )

    So much for starters. It will take some time to figure out how things work.

    in reply to: Why a new line for a comparison? #25485
    Patrick C
    Participant

    Thinking about it:
    I might scribble a comparison macro which starts either Winmerge or Notepad++ from within Emeditor. Currently I’m too busy for this, though I’ll get back to this post should I ever find time to do this.
    Cheers,
    Patrick

    in reply to: Why a new line for a comparison? #25483
    Patrick C
    Participant

    The way I see it, this is intended behaviour.

    Compare doesn’t indicate a new line. Instead it merely tells you that line 3 of Untitled-1 matches line 4 of Untitled-2.

    TotalCommander’s and Notepad++’s compare behaves exactly the same as EmEditor’s.

    Winmerge however behaves more like what your description of what to expect.

    As you already started the topic of comparing:
    @Yutaka: I know that its an horrendous amount of work, but Notepad++’s compare plugin is awesome. Would be cool if there were a way to implement something similar. Same goes for search, where NP++ also shines, but with respect to csv, large files and speed EmEditor is still way ahead. On the other hand, I can live quite comfortably with running EmEditor and the other two in parallel.

    in reply to: Selecting Multiple Columns in CSV #25476
    Patrick C
    Participant

    I admit its a bit wierd. For simplicity I’ll just give you one method, note that many variations exist.

    Lets say you want to delete columns 2 to 5:
    1) Single click any cell in column 2
    2) Keep shift pressed
    3) Single click any cell in column 5
    4) Right-click on any column number (e.g the “5” of column 5).
    5) Select / click “Delete columns”

    Patrick C
    Participant

    No way to erase highlight on mouse leaving found text.

    Out of curiosity:
    How should this work? Move the mouse over highlighted text and out again?

    Patrick C
    Participant

    And no option to clear the previous search on the next round automatically.

    I don’t get this one. As long as the number of search colours is one, the previous search is cleared automatically.

    Patrick C
    Participant

    Actually I’m surprised that non EmEditor’s highlighted string features are activated by default in your case.
    Anyway regarding:

    on double-clicking text there is no feature that highlights matches

    There is:
    1) Tools → Customise Markers → Enable AutoMarker

    2) To change the highlighting colour (also useful if enabling AutoMarker alone doesn’t work due to no colour being assigned to mark matches)
    Tools → Properties for all Configurations → Display → scroll down to “Auto Marker” → change the text and background colour to your liking

    Patrick C
    Participant

    http://www.emeditor.org/en/faq_view_view_find_highlight.html

    Tools → Properties for all Configurations → Display → scroll way down to “search string” → change search colours on the right from 0 to 1 to however many colours for previous search results you could possibly want.

    + To erase the highlight
    Search → Erase Find Highlight (shortcut Alt-F3 in my configuration)

    in reply to: Question of column width in CSV mode #23897
    Patrick C
    Participant

    Hello Yutaka,

    Thank you for the input so far!
    I would still very much appreciate a macro command for setting a column’s width, i.e. if its not too much work to implement in one of the upcoming releases.

    Best regards,

    Patrick

    in reply to: Question of column width in CSV mode #23888
    Patrick C
    Participant

    This is something that bugs me to.

    @Yutaka: Is there a macro command for setting a column’s view width?

    I couldn’t find one ☹
    Such a command would already help me to at least custom code a solution for this (@David: I’ll be happy to share the macro if that’s of use for you).

    in reply to: Emeditor crashes when opening Western European encoded files #23818
    Patrick C
    Participant

    Yippee – it works! 😃

    Thank you Yutaka – fixed in no time 👍

    Patrick

    in reply to: Emeditor crashes when opening Western European encoded files #23807
    Patrick C
    Participant

    EmEditor version
    EmEditor version

    Crash Report
    Crash report

    Non Unicode Language setting
    Non unicode language setting

    Email will follow shortly.

    in reply to: Different Record Delimiter #23575
    Patrick C
    Participant

    Hi Ken,

    As far as I can see using a newline character other than the typical CR &/∨ LF combinations doesn’t seem to be possible.
    However, you can write a macro to convert ÿ into CR LF and back again. Provided you aren’t dealing with >1 million lines and >10MB files, this should be pretty fast too.

    Best wishes,
    Patrick

    in reply to: Filter lines starting with capital letter #23092
    Patrick C
    Participant

    Probably Spiros already knows, but if not (hope you get notified of follow up replies to this post):

    Yutaka’s new Character count plug in is super fast and its ‘view line’ field shows the number of lines filtered.

    Thank you Yutaka!
    And btw: Also thank you for the DirectWrite implementation – I absolutely love it, the text is crispy clean and Emojis now work great too.

    in reply to: Changes to filtered line apply to all lines in between #23022
    Patrick C
    Participant

    Yep, I’ve fallen foul of the same too, at least twice or more times.

    The correct way to apply lowercase is by using find replace with regular expressions:

    Find replace with regular expressions

    results in:
    Result

    in reply to: Filter lines starting with capital letter #23021
    Patrick C
    Participant

    Hello Yutaka

    I’ve now noticed, that word count does the same thing but the other way round.
    What I basically meant is as follows:

    Case where the last line is not blank:
    Last line not blank

    Results in ctrl-a finding 13+1 = 14 lines instead of 13; Word count finds 13 view lines
    An additional line found

    Case where the last line is blank:
    Last line blank

    Results in ctrl-a finding 13 lines; interestingly Word count finds 14 view lines
    13 lines found; 14 in case of word count

    in reply to: Filter lines starting with capital letter #22964
    Patrick C
    Participant

    As in the image:
    Option 2:
    Hit ctrl+a to select all lines, then the bottom right indicator shows the number of selected lines and the total number of lines.
    Option 2 is fast in my case. There is one downside that Option 2 does add the last line to the count if it is blank.

    Word count

    PS Regarding option 1:
    Yes, sadly sluggish performance is the case for large files.

    in reply to: Filter lines starting with capital letter #22960
    Patrick C
    Participant

    Regarding the number of lines filtered:

    Option 1:
    Use the “Word Count” plugin (Tools → Plug-ins → 9 WordCount)
    Word count shows the total number of “Lines” and the “View Lines”, with the View Lines corresponding to the number of filtered lines.

    Option 2:
    Hit ctrl+a to select all.
    The status bar in the bottom right corner will then show the number of selected lines.

    in reply to: Filter lines starting with capital letter #22957
    Patrick C
    Participant

    Provided I didn’t mess up, the following should do

    ^[Α-ΩA-Z].*$

    Where
    ^ start of string (i.e. line)
    followed by a character within [Α-ΩA-Z]
    followed by any character (except newlines) .
    occurring zero or more times *
    $ end of string (i.e. line)

    Let me know if it does or doesn’t work.

    Cheers

    Patrick

    PS The full syntax would be
    /^[Α-ΩA-Z].*$/gm

    in reply to: Import Syntax button grayed out #22928
    Patrick C
    Participant

    Hi Billy,

    You’re almost there. Step 6 actually is:

    6. Change the top drop down menu from Only Default Keywords to either
    Both User Defined Strings and Default Keywords
    or
    Only User Defined Strings

    7. Click on the Import button, locate, and open the appropriate syntax file.

    Best wishes,
    Patrick

Viewing 25 posts - 76 through 100 (of 140 total)