From 71e65d12dbedd5957cb48aed469eeac9d25a2a48 Mon Sep 17 00:00:00 2001 From: Tony Cheang Date: Fri, 5 Feb 2021 13:59:26 -0800 Subject: [PATCH 1/3] remove: -Experimental suffix from codenav commands --- plugin/kite.vim | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/plugin/kite.vim b/plugin/kite.vim index 4ef2c34..95d306e 100644 --- a/plugin/kite.vim +++ b/plugin/kite.vim @@ -91,15 +91,15 @@ augroup END nnoremap (kite-docs) :call kite#docs#docs() -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() From c89362b39d9a9373fb12252a6ca3a7a37eba85de Mon Sep 17 00:00:00 2001 From: Tony Cheang Date: Fri, 5 Feb 2021 13:59:53 -0800 Subject: [PATCH 2/3] add: find related commands to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5b47454..635ce10 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,8 @@ Use `` or `:KiteGotoDefinition` to jump to a method's definition. ### Commands +- `KiteFindRelatedCodeFromFile` - search for code related to the current file. +- `KiteFindRelatedCodeFromLine` - search for code related to the current line. - `KiteDocsAtCursor` - show documentation for the keyword under the cursor. - `KiteOpenCopilot` - open the Kite Copilot and focus on it. - `KiteGeneralSettings` - open Kite's settings in the Copilot. From f859e16009aa80353f4c4adbead578ef5698b481 Mon Sep 17 00:00:00 2001 From: Tony Cheang Date: Mon, 8 Feb 2021 11:25:12 -0800 Subject: [PATCH 3/3] add: related code commands to help docs --- README.md | 8 ++++---- doc/kite.txt | 25 ++++++++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 635ce10..5cf2b75 100644 --- a/README.md +++ b/README.md @@ -183,13 +183,13 @@ Use `` or `:KiteGotoDefinition` to jump to a method's definition. ### Commands -- `KiteFindRelatedCodeFromFile` - search for code related to the current file. -- `KiteFindRelatedCodeFromLine` - search for code related to the current line. -- `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. diff --git a/doc/kite.txt b/doc/kite.txt index c59aeb3..97ada0f 100644 --- a/doc/kite.txt +++ b/doc/kite.txt @@ -257,26 +257,37 @@ Use 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. ==============================================================================