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

 
 

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

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

Submitter:  Cody A. Taylor <code_m>
Submitted:  Fri 25 Mar 2016 05:24:23 PM UTC
   
 
Severity:  1 - Wish Status:  Wont Fix
Assigned to:  None Open/Closed:  Closed

Mon 02 Dec 2019 04:18:19 PM UTC, comment #4: 

Not going to implement this.  <Home> is just one keystroke away.

Benno Schulenberg <bens>
Group administrator
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>
Group 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>
Group 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.)

No files currently attached

 

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-02 bens StatusNone Wont Fix
        Open/ClosedOpen Closed
    2016-03-26 bens Severity3 - Normal 1 - Wish
        Summary[Request] Goto line, smart first column. [Request] let goto_line do an automatic smarthome
    2016-03-25 code_m Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code