Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11050
    KamilZ
    Participant

    I’m not sure that this feature aren’t implemented but I can’t find it:
    – search window preview (with line numbers and click to go to the line in editor)
    – search in line mode (select whole line when match found on line)
    – copy all matches (or lines in line mode) to the clipboard
    – delete all matches (or lines in line mode)
    – inverse delete (lines in line mode) – delete all but not matches

    #11051
    Stefan
    Participant

    zmeskalk 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 matches

    Again 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

    .

    #11053
    KamilZ
    Participant

    Hi Stefan,

    One would use regex find to match your search string and everything around I guess: (?-s)^.*string to find.*$

    Yes I know but this isn’t user friendly. One checkbox “Line mode” in search dialog is simple and faster. My mother doesn’t understand regex :-).

    Press Ctrl+C after search is done. Press DEL after search is done.

    This copy (or delete) only one selected match not all matches. Or I need beta v13?

    Again you can go the bookmark road.

    Yes I can but this isn’t usefully because:
    – bookmark works only with whole line
    – I must clear own bookmark.

    Thank you for your answer.

    Kamil

    #11094
    Stefan
    Participant

     

    zmeskalk 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 matches

    Solved, zmeskalk ?

    .

    #11096
    KamilZ
    Participant

    It isn’t user friendly but functional. OK, solved, thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.