bugGNU nano - Bugs: bug #53957, Ctrl+_ for Go-To-Line is not...

 
 

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

bug #53957: Ctrl+_ for Go-To-Line is not working on Electron-based terminals

Submitter:  None
Submitted:  Mon 21 May 2018 02:27:31 PM UTC
   
 
Severity:  3 - Normal Status:  Invalid
Assigned to:  None Open/Closed:  Closed

Jump to the original submission

Sat 07 Jul 2018 07:27:24 PM UTC, comment #6: 

If it's a problem of the terminal, it cannot fixed in nano.  So... marking this as "cantfix" (if Savannah would know such a resolution).

Benno Schulenberg <bens>
Group administrator
Mon 11 Jun 2018 10:58:33 AM UTC, comment #5: 

I think it's a problem of electron based terminal apps like Hyper. iTerm2 and Terminal.app seem to work fine. Therefor, this issue can be closed

Yochem <yochem>
Sun 10 Jun 2018 10:25:25 PM UTC, comment #4: 

^_ (^-) seems to work on Terminal.app for me on 10.13.4.

^/ doesn't, but that seems to be an existing quirk.

Could you do the following so we can narrow down what is happening?
- See if you have Karabiner installed
- Try iTerm2
- Make sure you aren't running tmux or something
- You may have accidentally rebound something - try nano --ignorercfiles
- Try running from a clean bash shell:

env -i PATH="$PATH" TERM="xterm-256color" /bin/bash --login --noprofile

- Try using the (really) old system version of nano - /usr/bin/nano
- Try a different Terminal profile (Shell>New Tab>select a profile you don't use)
- In Terminal.app's preferences, go to the Profiles tab, select your default profile, press the gear at the bottom of the list, hit Export and upload (name you chose).terminal

easyaspi314 <easyaspi314>
Thu 24 May 2018 10:23:21 AM UTC, comment #3: 

You say: "Terminal app: any".  But according to [1], at least ^/ should work on an iTerm2.  What terminal app did you test all those keystrokes on?

[1] https://apple.stackexchange.com/questions/24261/how-do-i-send-c-that-is-control-slash-to-the-terminal

Benno Schulenberg <bens>
Group administrator
Tue 22 May 2018 07:36:20 PM UTC, comment #2: 

The one's I've tried:
- Control+dash (^-)
- Control+Shift+dash (^_)
- Control+M+dash (^esc-)
- Control+alt+dash (^alt-)
- Control+slash (^/) (gives audible feedback)

I've also checked my system wide keyboard shortcuts, but couldn't find anything that looks like control dash.

I think mac users just need to use M-G.

Yochem <yochem>
Mon 21 May 2018 06:46:13 PM UTC, comment #1: 

I don't know whether the Mac grabs ^_ for its own purposes.  But exactly which keys do you press to type ^_?  Control+Shift+dash?  (Where dash is the key between zero and =.)

Have you tried ^/ (control+slash)?  If that does work for you, then I'll change the underscore for a slash when compiled on a Mac.

Benno Schulenberg <bens>
Group administrator
Mon 21 May 2018 02:27:31 PM UTC, original submission:  

OS: MacOS v10.13.4
Nano: GNU Nano 2.9.5 (installed using homebrew)
Terminal app: any

Hello everyone,
Since I am using Nano, I typed M-G to go to a specific line. This is because ^_ is not working correctly (it does nothing).  Is this because ^_ is already used on macOS?

Anonymous

 

(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 easyaspi314 (Posted a comment)
  • -email is unavailable- added by yochem (Posted a comment)
  • -email is unavailable- added by bens (Posted a comment)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-13 bens Open/ClosedOpen Closed
    2018-07-07 bens StatusNeed Info Invalid
        SummaryGo-to-line with &lt;Ctrl+_&gt; is not working on a Mac Ctrl+_ for Go-To-Line is not working on Electron-based terminals
    2018-05-24 bens Summary[mac] Go-to-line with &lt;Ctrl+_&gt; is not working on mac Go-to-line with <Ctrl+_> is not working on a Mac
    2018-05-21 bens StatusNone Need Info
        Summary[mac] Go to line with ctrl + _ not working on mac [mac] Go-to-line with <Ctrl+_> is not working on mac

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code