oni icon indicating copy to clipboard operation
oni copied to clipboard

Consider explicitly pointing out in docs that some Ctrl+ shortcuts are platform specific

Open jjt opened this issue 8 years ago • 4 comments

I've been a vim user for the better part of a decade. When trying out Oni, I see that there's CtrlP functionality (yay!). Ctrl+P doesn't trigger the QuickOpen menu on my system (MacOS), but ⌘-P does. Hmm. I try out a bunch of other Ctrl prefixed shortcuts from the documentation. Nothing, but the ⌘ prefixed versions work. I then go down a rabbit hole for an hour of diagnosing my system, seeing if something is swallowing Ctrl or interacting weirdly with Oni. It then dawns on me that shortcuts that have both Ctrl and ⌘ prefixes might only work with the latter and it's not either/or as the docs might initially make it seem:

Ctrl-P / ⌘-P | Show quick open menu (When in normal mode and menu is not open)

Especially for users coming from terminal vim where Ctrl is used frequently, I think this is an important distinction to call out explicitly.

jjt avatar Mar 27 '18 20:03 jjt

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Mar 27 '18 20:03 oni-bot

Related, but would be good to have available Oni-specific commands in the doc instead of a link to create a new Wiki page. At the very least, pointing to KeyBindings.ts would be a good start.

jjt avatar Mar 27 '18 20:03 jjt

Sorry, the docs are a bit out of date, and you are totally right about the mac shortcuts being confusingly worded. I ran into this issue when I first tried Oni a few weeks ago, and I am working on a refresh of the documentation that will address this and other issues. I hope this experience didn't turn you off of Oni; it's still early days but I personally have really enjoyed using it as my daily driver. The fixes to the documentation should be ready some time in the next week.

Edit: I will say that the Oni command P is modeled more off of VSCode's UI than the ctrl-p plugin, and I have continued to use ctrl-p just like I did before I switched. FWIW, you can get a very vanilla vim experience without sacrificing the language server integration by following the How To: Make Oni closer to bare Vim experience guide in the wiki. I have a few of these in my init.vim now for compatibility:

  if exists('g:gui_oni')
    " Oni-only config
  else
    " Nvim-only config
  endif

parkerault avatar Mar 28 '18 02:03 parkerault

Oh, I paved right through that and have been enjoying Oni so far :) On Tue, Mar 27, 2018 at 7:35 PM parkerault [email protected] wrote:

Sorry, the docs are a bit out of date, and you are totally right about the mac shortcuts being confusingly worded. I ran into this issue when I first tried Oni a few weeks ago, and I am working on a refresh of the documentation that will address this and other issues. I hope this experience didn't turn you off of Oni; it's still early days but I personally have really enjoyed using it as my daily driver. The fixes to the documentation should be ready some time in the next week.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/onivim/oni/issues/1948#issuecomment-376740641, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYYbQWR5vUx66JHBoqDV_NjqGftFwzbks5tivbpgaJpZM4S9j0V .

jjt avatar Mar 28 '18 03:03 jjt