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

 
 

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: 3 - NormalStatus: Postponed
Assigned to: Benno Schulenberg <bens>Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by vapier (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Oct 2015 08:59:05 PM UTCbensStatusIn Progress=>Postponed
    Mon 04 May 2015 09:04:58 AM UTCbensAttached File-=>Added spellcheck-FROM-CURSOR.patch, #33893
      StatusNone=>In Progress
    Wed 29 Apr 2015 08:20:31 AM UTCbensSummaryspell check should have a more specific mode=>[Request] allow spell checking from cursor instead of whole file
    Sun 08 Mar 2015 08:34:27 PM UTCbensAssigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1