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

Submitted by:  Mike Frysinger <vapier>
Submitted on:  Mon 23 Feb 2015 07:26:25 PM UTC  
Severity:  1 - Wish Status:  Postponed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Open

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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project AdministratorIn charge of this item.
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>
Project Member


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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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.5