Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connections Examples #1552

Merged
merged 4 commits into from
Dec 18, 2024
Merged

Connections Examples #1552

merged 4 commits into from
Dec 18, 2024

Conversation

oneirocosm
Copy link
Member

@oneirocosm oneirocosm commented Dec 18, 2024

Adds a few examples to the connections.mdx file to show:

  • hiding a connection
  • re-ordering connections
  • theming connections
  • disabling wsh for a connection

Summary by CodeRabbit

  • Documentation
    • Updated the connections documentation with new sections on internal configurations and examples.
    • Added practical examples for hiding connections, reordering dropdowns, and theming connections.
    • Introduced guidance on disabling Wsh for specific connections with example JSON snippets.

Copy link
Contributor

coderabbitai bot commented Dec 18, 2024

Walkthrough

The documentation for connections has been updated to include new sections that enhance guidance on managing connections. A section titled "Example Internal Configurations" has been added, providing practical JSON examples for hiding connections, moving them in the dropdown list, and theming. Additionally, a section on "Disabling Wsh for a Connection" details how to edit the connections.json file to disable WSH for specific connections, including example snippets. These changes improve user understanding of customization options.

Changes

File Change Summary
docs/docs/connections.mdx Added new sections:
- "Example Internal Configurations" with JSON examples for connection customization
- "Disabling Wsh for a Connection" with configuration instructions

Possibly related PRs

Poem

🐰 Connections dance, config in paw,
JSON whispers secrets we never saw.
Dropdown magic, themes so bright,
WSH silenced with config's might.
Documentation blooms with care! 🔧


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (3)
docs/docs/connections.mdx (3)

81-81: Improve grammar in introductory text

For formal documentation, use "a couple of" instead of "a couple".

-Here are a couple examples of things you can do using the internal configuration file `config.json`:
+Here are a couple of examples of things you can do using the internal configuration file `config.json`:
🧰 Tools
🪛 LanguageTool

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...mple Interal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


113-113: Add missing comma in compound sentence

For better readability and correct grammar, add a comma before "but" in the compound sentence.

-Suppose you have a connection named `myhost` that shows up as `myusername@myhost` in the connections dropdown. You use this connection a lot but you keep getting it mixed up with your local connections.
+Suppose you have a connection named `myhost` that shows up as `myusername@myhost` in the connections dropdown. You use this connection a lot, but you keep getting it mixed up with your local connections.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~113-~113: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... dropdown. You use this connection a lot but you keep getting it mixed up with your ...

(COMMA_COMPOUND_SENTENCE)


81-82: Add information about config.json location

Consider adding information about where to find and how to edit the config.json file. This would help users better understand how to implement these examples.

🧰 Tools
🪛 LanguageTool

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...mple Interal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 69bb1d4 and 3769bbd.

📒 Files selected for processing (1)
  • docs/docs/connections.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/connections.mdx

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...mple Interal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


[uncategorized] ~113-~113: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... dropdown. You use this connection a lot but you keep getting it mixed up with your ...

(COMMA_COMPOUND_SENTENCE)

docs/docs/connections.mdx Show resolved Hide resolved
docs/docs/connections.mdx Outdated Show resolved Hide resolved
docs/docs/connections.mdx Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
docs/docs/connections.mdx (2)

81-81: Improve grammar in the introduction

For formal documentation, consider adding "of" after "couple".

-Here are a couple examples of things you can do using the internal configuration file `connections.json`:
+Here are a couple of examples of things you can do using the internal configuration file `connections.json`:
🧰 Tools
🪛 LanguageTool

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...ple Internal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


131-131: Fix grammar in the introduction sentence

Add the missing word "to" in the sentence.

-While Wave provides an option disable `wsh` when first connecting to a remote
+While Wave provides an option to disable `wsh` when first connecting to a remote
🧰 Tools
🪛 LanguageTool

[uncategorized] ~131-~131: Possible missing preposition found.
Context: ...nnection While Wave provides an option disable wsh when first connecting to a remote...

(AI_HYDRA_LEO_MISSING_TO)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3769bbd and 8417b6d.

📒 Files selected for processing (1)
  • docs/docs/connections.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/connections.mdx

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...ple Internal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


[uncategorized] ~85-~85: Possible missing comma found.
Context: ...environment. In that case, you can hide it as in the example below: ```json { ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~131-~131: Possible missing preposition found.
Context: ...nnection While Wave provides an option disable wsh when first connecting to a remote...

(AI_HYDRA_LEO_MISSING_TO)

🔇 Additional comments (2)
docs/docs/connections.mdx (2)

87-95: Improve JSON example clarity and validity

The current JSON example uses invalid placeholders. Consider showing a complete, minimal example instead.

 {
-    <... other connections go here ...>,
     "git@github.com" : {
         "display:hidden": true
-    },
-    <... other connections go here ...>
+    }
 }

79-144: Overall improvements look good!

The new examples section significantly enhances the documentation by providing clear, practical examples for common connection configurations. The examples are well-structured and cover important use cases.

🧰 Tools
🪛 LanguageTool

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...ple Internal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


[uncategorized] ~85-~85: Possible missing comma found.
Context: ...environment. In that case, you can hide it as in the example below: ```json { ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~131-~131: Possible missing preposition found.
Context: ...nnection While Wave provides an option disable wsh when first connecting to a remote...

(AI_HYDRA_LEO_MISSING_TO)

docs/docs/connections.mdx Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/docs/connections.mdx (2)

81-81: Improve grammar in introduction

For more formal documentation, consider adding "of" after "couple".

-Here are a couple examples of things you can do using the internal configuration file `connections.json`:
+Here are a couple of examples of things you can do using the internal configuration file `connections.json`:
🧰 Tools
🪛 LanguageTool

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...ple Internal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


131-131: Fix grammar in introduction

Add the missing preposition "to".

-While Wave provides an option disable `wsh`
+While Wave provides an option to disable `wsh`
🧰 Tools
🪛 LanguageTool

[uncategorized] ~131-~131: Possible missing preposition found.
Context: ...nnection While Wave provides an option disable wsh when first connecting to a remote...

(AI_HYDRA_LEO_MISSING_TO)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8417b6d and 1cc7086.

📒 Files selected for processing (1)
  • docs/docs/connections.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/connections.mdx

[grammar] ~81-~81: Using ‘couple’ without ‘of’ is considered to be informal.
Context: ...ple Internal Configurations Here are a couple examples of things you can do using the internal...

(PLENTY_OF_NOUNS)


[uncategorized] ~85-~85: Possible missing comma found.
Context: ...environment. In that case, you can hide it as in the example below: ```json { ...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~131-~131: Possible missing preposition found.
Context: ...nnection While Wave provides an option disable wsh when first connecting to a remote...

(AI_HYDRA_LEO_MISSING_TO)

🔇 Additional comments (2)
docs/docs/connections.mdx (2)

87-95: Use valid JSON in examples

The placeholder text <... other connections go here ...> with commas makes the JSON invalid.

{
-    <... other connections go here ...>,
    "git@github.com" : {
        "display:hidden": true
-    },
-    <... other connections go here ...>
+    }
}

133-141: ⚠️ Potential issue

Fix inconsistency in configuration key name

The configuration key conn:enablewsh doesn't match the documented key conn:wshenabled from the configuration table above.

{
    <... other connections go here ...>,
    "root@wshless" : {
-        "conn:enablewsh": false,
+        "conn:wshenabled": false
    },
    <... other connections go here ...>
}

Likely invalid or redundant comment.

@oneirocosm oneirocosm merged commit 410c01c into main Dec 18, 2024
9 checks passed
@oneirocosm oneirocosm deleted the sylvie/connections-examples branch December 18, 2024 08:19
@coderabbitai coderabbitai bot mentioned this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant