Open dbieber opened 7 years ago
Update: Yes, MainMenu.xib was the right place to add new commands. I was able to add new menu items here, give them Key Equivalents, and then associate their "actions" with new functions I defined in AppController.{h,m}.
I'm looking through the source to see if I can figure out how to add additional keyboard shortcuts. I figured I'd also ask here, in case that turns out to be a faster method of onboarding.
So far I've found setupFontMenu in LinkingEditor.m, but adding a new MenuItem like strikethrough hasn't worked for me (maybe because of validateMenuItem(?)).
https://github.com/ttscoff/nv/blob/a863e96a5bc2ed2723fd6d0beb479c50a7f299f7/LinkingEditor.m#L1655-L1657
I've also just found MainMenu.xib, which looks promising.