Skip to content

Commit

Permalink
Fix GitHub/GitLab brand capitalization (#266)
Browse files Browse the repository at this point in the history
* docs: fix GitHub and GitLab brand capitalization

* [docgen] Update doc/sg.txt
skip-checks: true

---------

Co-authored-by: Sourcegraph <[email protected]>
Co-authored-by: Github Actions <actions@github>
  • Loading branch information
3 people authored Dec 15, 2024
1 parent 76c97d9 commit 7c423eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Requires:
- nvim 0.9 or nvim nightly
- Node.js >= 18.17.0 (LTS) at runtime for [`cody-agent.js`](https://github.com/sourcegraph/cody)

(By default, sg.nvim downloads released binaries from Github. If you prefer to build the plugin yourself, you'll need `cargo` to build)
(By default, sg.nvim downloads released binaries from GitHub. If you prefer to build the plugin yourself, you'll need `cargo` to build)

- Currently uses plenary.nvim and telescope.nvim for some features.
- If you would like to use something else for search functionality, please make an issue and I can look into adding support.
Expand Down
35 changes: 8 additions & 27 deletions doc/sg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ M.setup({opts}) *M.setup()*


Parameters: ~
{opts} (sg.config)
{opts} (sg) .config



Expand Down Expand Up @@ -136,22 +136,14 @@ Default commands for interacting with Cody
:CodyAsk ~
Ask a question about the current selection.

Use from visual mode to pass the current selection

*:CodyExplain*
:CodyExplain ~
Ask a question about the current selection.

Use from visual mode to pass the current selection

*:CodyChat{!}*
:CodyChat{!} {title} ~
State a new cody chat, with an optional {title}

If {!} is passed, will reset the chat and start a new chat conversation.

For more configuation options, see: `:help sg.cody.commands.chat`

*:CodyToggle*
:CodyToggle ~
Toggles the current Cody Chat window.
Expand All @@ -164,16 +156,14 @@ Default commands for interacting with Cody
:CodyRestart ~
Restarts Cody and Sourcegraph, clearing all state.

Useful if you've re-authenticated or are testing your config



M.setup({config}) *cody.setup()*
Setup Cody


Parameters: ~
{config} (sg.config)
{config} (sg) .config



Expand All @@ -189,15 +179,15 @@ commands.ask_range({bufnr}, {start_row}, {end_row}, {message}, {opts}) *sg.cody.
{start_row} (number)
{end_row} (number)
{message} (string)
{opts} (cody.ChatOpts)
{opts} (cody) .ChatOpts


commands.autocomplete({request}, {callback}) *sg.cody.commands.autocomplete()*
Send an autocomplete request


Parameters: ~
{request} ({ filename: string, row: number, col: number }?)
{request} ({ filename: string, row: number, col: number }) ?
{callback} (function(err: table, data: CodyAutocompleteResult))


Expand Down Expand Up @@ -234,7 +224,7 @@ commands.chat({new}, {opts}) *sg.cody.commands.chat()*

Parameters: ~
{new} (boolean)
{opts} (cody.ChatOpts)
{opts} (cody) .ChatOpts


commands.toggle() *sg.cody.commands.toggle()*
Expand Down Expand Up @@ -290,14 +280,7 @@ Default commands for interacting with Sourcegraph

*:SourcegraphLogin*
:SourcegraphLogin ~
Get prompted for endpoint and access_token if you don't want to set them
via environment variables.

For enterprise instances, the only currently supported method is
environment variables.

If you want to force a particular endpoint + access token combination to be
saved, use :SourcegraphLogin! and then follow the prompts.
Get prompted for endpoint and access_token if you don't

*:SourcegraphClear*
:SourcegraphClear ~
Expand All @@ -311,13 +294,11 @@ Default commands for interacting with Sourcegraph
*:SourcegraphDownloadBinaries*
:SourcegraphDownloadBinaries ~
(Re-)Download the sourcegraph binaries. This should happen during
installation but you can force redownloading the binaries this way to
ensure that sg.nvim is properly installed.
installation

*:SourcegraphLink*
:SourcegraphLink ~
Get a sourcegraph link to the current repo + file + line. Automatically
adds it to your '+' register
Get a sourcegraph link to the current repo + file + line.

*:SourcegraphSearch*
:SourcegraphSearch ~
Expand Down

0 comments on commit 7c423eb

Please sign in to comment.