bugGNU nano - Bugs: bug #47534, [Request] let goto_line do an...

 
 

bug #47534: [Request] let goto_line do an automatic smarthome

Submitted by:  Cody A. Taylor <code_m>
Submitted on:  Fri 25 Mar 2016 05:24:23 PM UTC  
 
Severity: 1 - WishStatus: None
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 22 May 2016 10:48:12 AM UTC, comment #3:

I wouldn't say it is a fairly common feature: Geany and gedit don't do it, nor joe nor emacs; only vim does it. One out of five.

But... now that I see vim do it... it kind of feels more natural. :)

However, in nano, when the cursor is somewhere deep into the current line and you use goto-line, the cursor will be at the same spot in the new line. This kind of feels odd, but it is useful when you want to check that things in distant places are aligned. The requested auto-smarthome behavior would conflict with that.

Maybe we could keep the old behavior only when smarthome isn't set? Will have to ask on the mailing list whether people will want the automatic-smarthome behavior.

Benno Schulenberg <bens>
Project Administrator
Mon 28 Mar 2016 02:44:14 PM UTC, comment #2:

I suggest it because it seems to be a fairly common feature of "goto line" functions in other editors.

Granted I am no editor expert, but I certainly enjoyed the feature while I used the "Atom" editor (by github).

Anyway, you are correct, it is just another keystroke to do the smarthome.

Cody A. Taylor <code_m>
Sat 26 Mar 2016 12:00:56 PM UTC, comment #1:

Hmm... I don't think that will be worth it. Personally I would prefer the cursor to sit at the end of the indicated line. Both options are just one keystroke away: Home or End, ^A or ^E.

Benno Schulenberg <bens>
Project Administrator
Fri 25 Mar 2016 05:24:23 PM UTC, original submission:

When omitting the column in a goto line function (^_), it always assumes "1".

Instead, I would like the editor to go the first non-whitespace character on that line (when no column is specified).

For example, I specify a line with four spaces and "hello", the editor should choose column 5 for me.

A new configuration flag could be added, or you could just add to the functionality of "smarthome".

Cody A. Taylor <code_m>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 code_m (Submitted the item)
  • -unavailable- added by code_m
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Mar 2016 12:00:56 PM UTCbensSeverity3 - Normal=>1 - Wish
      Summary[Request] Goto line, smart first column.=>[Request] let goto_line do an automatic smarthome
    Fri 25 Mar 2016 05:24:23 PM UTCcode_mCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1