4

Is there a keyboard shortcut for toggling line number display in the nano editor on a Mac?

The keyboard shortcut Option-# that works in Linux work doesn't work on a Mac.

I read where someone suggested Control-# or Option-C but they don't work either.

I realize it can be set in the nanorc configuration file, but I only want to see line numbers when I need them, like when I need to see which line an error is occurring on, hence the desire to toggle the display.

Giacomo1968
  • 58,727

2 Answers2

4

escn and escshift# work on macOS.

Meta-key sequences are notated with 'M-' and can be entered using either the Alt, Cmd, or Esc key, depending on your keyboard setup.

George Valkov
  • 281
  • 2
  • 5
1

Option + shift + # worked for me

cocomac
  • 109