bugGNU nano - Bugs: bug #44352, [Request] allow spell checking...

 
 

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

bug #44352: [Request] allow spell checking from cursor instead of whole file

Submitter:  Mike Frysinger <vapier>
Submitted:  Mon 23 Feb 2015 07:26:25 PM UTC
   
 
Severity:  1 - Wish Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Sun 27 Sep 2020 09:48:06 AM UTC, comment #5: 

I meant of course:

bind M-T "^[[1;6F^T^T" main


Benno Schulenberg <bens>
Group administrator
Sun 27 Sep 2020 09:46:17 AM UTC, comment #4: 

With string binds, one can roughly make this oneself:

  bind M-T "bind M-T "^[[1;6F^T^T" main

(where ^[ and ^T are literal control characters).

The disadvantage is that afterward the cursor has moved to the end of the buffer, and that the spell-checked text is marked.  The mark immediately disappears when the cursor is moved, so that is hardly an issue.  But the cursor moving...  Well, it's not perfect, but I don't think it's worth adding a special option or function to avoid this.

Benno Schulenberg <bens>
Group administrator
Mon 04 May 2015 09:04:58 AM UTC, comment #3: 

Attached is a working patch.  (It's not yet safe for possible --enable and --disable configure options, and excludes any doc changes.)

The logic is as follows:
1) If the mark is on, it always spell checks the marked region.
2) If the mark is off, and spellfromcursor is active, it spell checks from the cursor to the end-of-file.
3) Otherwise it spell checks the entire file.

To test, use -M on the command line, or add 'set spellfromcursor' to your nanorc, or add something like 'bind M-O spellfromcursor main' to have a toggle.

(file #33893)

Benno Schulenberg <bens>
Group administrator
Mon 09 Mar 2015 01:20:01 AM UTC, comment #2: 

a mode you can toggle seems like the easiest route, and wouldn't require new muscle memory

Mike Frysinger <vapier>
Group Member
Sun 08 Mar 2015 08:34:27 PM UTC, comment #1: 

(There is of course a way you can do what you want: M-A  M-/  ^T.  But that moves the cursor and switches on the mark.)

When we would make a spell-check-from-cursor, should it be a separate function that the user can bind to a key?  Or should there be a toggle (and command-line option?) to switch ^T back and forth between doing a full spell check and doing a partial one?  Or both (a bindable function plus a bindable toggle)?

Benno Schulenberg <bens>
Group administrator
Mon 23 Feb 2015 07:26:25 PM UTC, original submission:  

the current spell checker operates on the entire file always from the start.  this is annoying when working on a specific section of a file and you want to just check that part.  examples:
 - writing code and you add a new comment block / printf string
 - writing an e-mail and it's bottom posting, so there's a lot of responses above

if you could invoke the spell checker starting at the current cursor, that'd work great

Mike Frysinger <vapier>
Group Member

 

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

Attached Files
file #33893:  spellcheck-FROM-CURSOR.patch added by bens (5KiB - text/x-diff - adding a "spell check from cursor")

 

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 vapier (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
    2020-10-08 bens Open/ClosedOpen Closed
    2020-09-27 bens StatusPostponed Wont Fix
        Assigned tobens None
    2018-02-18 bens Severity3 - Normal 1 - Wish
    2015-10-29 bens StatusIn Progress Postponed
    2015-05-04 bens Attached File- Added spellcheck-FROM-CURSOR.patch, #33893
        StatusNone In Progress
    2015-04-29 bens Summaryspell check should have a more specific mode [Request] allow spell checking from cursor instead of whole file
    2015-03-08 bens Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code