bugGNU nano - Bugs: bug #59655, [Wish] when searching, select the...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59655: [Wish] when searching, select the found occurrence

Submitter:  noam sondak <noamso>
Submitted:  Fri 11 Dec 2020 08:24:45 AM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 15 Jan 2021 10:53:11 AM UTC, comment #5: 

Released in nano-5.5, through --markmatch.

Benno Schulenberg <bens>
Group administrator
Thu 24 Dec 2020 11:24:26 AM UTC, comment #4: 

Fixed in git, commit 856a6ecd and subsequent, by setting the mark at the end of the match (when no hard mark was on when the search started).

Benno Schulenberg <bens>
Group administrator
Sun 13 Dec 2020 11:09:48 AM UTC, comment #3: 

[Please do not respond by email.  Post your comments on the issue in Savannah.  See the URL near the end of the email.]

Benno Schulenberg <bens>
Group administrator
Sat 12 Dec 2020 01:57:11 PM UTC, comment #2: 

Attached two patches implement the requested behavior.  (These are just proofs-of-concept -- there is no promise that this will become part of nano.)

(file #50445, file #50446)

Benno Schulenberg <bens>
Group administrator
Sat 12 Dec 2020 01:55:34 PM UTC, comment #1: 

[Rewording the request for clarity:]

When searching for something, it would be nice if the found match would be highlighted.  Highlighting the whole match (instead of just putting the cursor on the first character) makes the match much more visible.

Additionally, it would be nice if the match was actually selected (marked), because then it could be deleted with a single keystroke (^K or Del or Bsp) and something else typed in its stead.

Benno Schulenberg <bens>
Group administrator
Fri 11 Dec 2020 08:24:45 AM UTC, original submission:  

this is much clearer, and you can delete and replaced the found text. this is super useful, as a programmer this is something i do all the time !
thanks !

noam sondak <noamso>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #50445:  mark-the-match.patch added by bens (599B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by noamso (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-15 bens Open/ClosedOpen Closed
    2020-12-24 bens StatusIn Progress Fixed
    2020-12-23 bens StatusReady For Test In Progress
    2020-12-15 bens Assigned toNone bens
    2020-12-12 bens Attached File- Added mark-the-match.patch, #50445
        Attached File- Added hide-cursor-when-marking-a-match.patch, #50446
        StatusNone Ready For Test
    2020-12-12 bens Severity3 - Normal 1 - Wish
        Summary[Wish] Mark found text entirely instead of just bringing the cursor to the start position [Wish] when searching, select the found occurrence

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code