Skip to content

Commit

Permalink
Merge pull request kiteco#347 from kiteco/launch-nav
Browse files Browse the repository at this point in the history
Launch Nav
  • Loading branch information
metalogical authored Feb 12, 2021
2 parents 351b709 + f859e16 commit 8db0158
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 21 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ Use `<C-]>` or `:KiteGotoDefinition` to jump to a method's definition.

### Commands

- `KiteDocsAtCursor` - show documentation for the keyword under the cursor.
- `KiteFindRelatedCodeFromFile` - search for code related to the current file in the Copilot.
- `KiteFindRelatedCodeFromLine` - search for code related to the current line in the Copilot.
- `KiteDocsAtCursor` - show documentation for the keyword under the cursor in the Copilot.
- `KiteOpenCopilot` - open the Kite Copilot and focus on it.
- `KiteGeneralSettings` - open Kite's settings in the Copilot.
- `KitePermissions` - open Kite's permission settings in the Copilot.
- `KiteTutorial` - show a tutorial for how to use Kite with Vim.
- `KiteTutorial` - show a tutorial for using Kite with Vim.
- `KiteEnableAutoStart` - start Kite automatically when Vim starts.
- `KiteDisableAutoStart` - do not start Kite automatically when Vim starts.
- `KiteGotoDefinition` - jump to a method's definition.
Expand Down
25 changes: 18 additions & 7 deletions doc/kite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,26 +257,37 @@ Use <C-]> or `:KiteGotoDefinition` to jump to a method's definition.
==============================================================================
COMMANDS *kite-commands*

*:KiteFindRelatedCodeFromFile*
:KiteFindRelatedCodeFromFile Search for code related to the current file
in the Copilot.

*:KiteFindRelatedCodeFromLine*
:KiteFindRelatedCodeFromLine Search for code related to the current line
in the Copilot.

*:KiteDocsAtCursor*
:KiteDocsAtCursor Show documentation for the keyword under the cursor.
:KiteDocsAtCursor Show documentation for the keyword under
the cursor in the Copilot.

*:KiteOpenCopilot*
:KiteOpenCopilot Open the Kite Copilot and focus on it.
:KiteOpenCopilot Open the Kite Copilot and focus on it.

*:KiteGeneralSettings*
:KiteGeneralSettings Open Kite's settings in the Copilot.
:KiteGeneralSettings Open Kite's settings in the Copilot.

*:KitePermissions*
:KitePermissions Open Kite's permission settings in the Copilot.
:KitePermissions Open Kite's permission settings in the
Copilot.

*:KiteTutorial*
:KiteTutorial Show a tutorial for how to use Kite with Vim.
:KiteTutorial Show a tutorial for using Kite with Vim.

*:KiteEnableAutoStart*
:KiteEnableAutoStart Start Kite automatically when Vim starts.
:KiteEnableAutoStart Start Kite automatically when Vim starts.

*:KiteDisableAutoStart*
:KiteDisableAutoStart Do not start Kite automatically when Vim starts.
:KiteDisableAutoStart Do not start Kite automatically when Vim
starts.


==============================================================================
Expand Down
24 changes: 12 additions & 12 deletions plugin/kite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ augroup END

nnoremap <silent> <Plug>(kite-docs) :call kite#docs#docs()<CR>
command! KiteDocsAtCursor call kite#docs#docs()
command! KiteOpenCopilot call kite#client#copilot()
command! KiteGeneralSettings call kite#client#settings()
command! KitePermissions call kite#client#permissions()
command! KiteTutorial call kite#onboarding#call(1)
command! KiteDisableAutoStart call kite#disable_auto_start()
command! KiteEnableAutoStart call kite#enable_auto_start()
command! KiteShowPopularPatterns call kite#signature#show_popular_patterns()
command! KiteHidePopularPatterns call kite#signature#hide_popular_patterns()
command! KiteGotoDefinition call kite#hover#goto_definition()
command! KiteFindRelatedCodeFromFileExperimental call kite#codenav#from_file()
command! KiteFindRelatedCodeFromLineExperimental call kite#codenav#from_line()
command! KiteDocsAtCursor call kite#docs#docs()
command! KiteOpenCopilot call kite#client#copilot()
command! KiteGeneralSettings call kite#client#settings()
command! KitePermissions call kite#client#permissions()
command! KiteTutorial call kite#onboarding#call(1)
command! KiteDisableAutoStart call kite#disable_auto_start()
command! KiteEnableAutoStart call kite#enable_auto_start()
command! KiteShowPopularPatterns call kite#signature#show_popular_patterns()
command! KiteHidePopularPatterns call kite#signature#hide_popular_patterns()
command! KiteGotoDefinition call kite#hover#goto_definition()
command! KiteFindRelatedCodeFromFile call kite#codenav#from_file()
command! KiteFindRelatedCodeFromLine call kite#codenav#from_line()

0 comments on commit 8db0158

Please sign in to comment.