Skip to content

refactor(fish): correct abbreviation naming - #1057

Merged
shunkakinoki merged 2 commits into
mainfrom
refactor/correct-fish-abbreviations
Mar 11, 2026
Merged

refactor(fish): correct abbreviation naming#1057
shunkakinoki merged 2 commits into
mainfrom
refactor/correct-fish-abbreviations

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Changes

  • Renamed fish function abbreviations: clxtecltxe, clxtehcltxeh, clxweclwxe, clxwehclwxeh
  • Updated function definitions and abbreviations mapping in fish config

Technical Details

  • Corrected inconsistent naming patterns in abbreviation functions
  • Renamed function files to match new naming conventions
  • Maintained same functionality with updated references

Testing

  • Existing function behavior preserved
  • Abbreviation mapping updated correctly

Generated with opencode by glm-4.7


Summary by cubic

Standardized and clarified fish abbreviations for Claude Code commands. Renamed clxtecltxe, clxtehcltxeh, clxweclwxe, clxwehclwxeh; reordered abbreviation entries; behavior unchanged.

  • Refactors

    • Updated abbreviations map, function registration, and ordering in home-manager/programs/fish/default.nix.
    • Renamed function files and function names to match: _cltxe_function.fish, _cltxeh_function.fish, _clwxe_function.fish, _clwxeh_function.fish.
  • Migration

    • Use cltxe, cltxeh, clwxe, clwxeh (old names removed).
    • Reload fish or restart your shell.

Written for commit 552b39c. Summary will update on new commits.

Copilot AI review requested due to automatic review settings March 11, 2026 23:10
@shunkakinoki
shunkakinoki enabled auto-merge (squash) March 11, 2026 23:10
@mesa-dot-dev

mesa-dot-dev Bot commented Mar 11, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@shunkakinoki has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 0 minutes and 28 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9914c4d3-6370-4b0c-9ebd-f1a918f05387

📥 Commits

Reviewing files that changed from the base of the PR and between f379e75 and 552b39c.

📒 Files selected for processing (5)
  • home-manager/programs/fish/default.nix
  • home-manager/programs/fish/functions/_cltxe_function.fish
  • home-manager/programs/fish/functions/_cltxeh_function.fish
  • home-manager/programs/fish/functions/_clwxe_function.fish
  • home-manager/programs/fish/functions/_clwxeh_function.fish
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/correct-fish-abbreviations

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors Fish shell abbreviations and their associated function files to correct inconsistent naming patterns. The changes ensure a more logical and consistent naming scheme for "Claude Code" related functions, improving code readability and maintainability without altering any existing functionality.

Highlights

  • Abbreviation Renaming: Renamed four Fish shell function abbreviations: 'clxte' to 'cltxe', 'clxteh' to 'cltxeh', 'clxwe' to 'clwxe', and 'clxweh' to 'clwxeh' to correct inconsistent naming patterns.
  • Configuration Updates: Updated the Fish shell configuration in 'default.nix' to reflect the new abbreviation mappings and ensure proper function referencing.
  • File Renaming: Renamed corresponding function files to align with the new abbreviation naming conventions, maintaining consistency across the codebase.
Changelog
  • home-manager/programs/fish/default.nix
    • Removed old abbreviation mappings for 'clxte', 'clxteh', 'clxwe', and 'clxweh'.
    • Added new abbreviation mappings for 'cltxe', 'cltxeh', 'clwxe', and 'clwxeh'.
    • Updated the list of functions to be sourced, replacing old names with new ones.
  • home-manager/programs/fish/functions/_clxte_function.fish
    • File was renamed to 'home-manager/programs/fish/functions/_cltxe_function.fish'.
  • home-manager/programs/fish/functions/_clxteh_function.fish
    • File was renamed to 'home-manager/programs/fish/functions/_cltxeh_function.fish'.
    • Updated the function definition name from '_clxteh_function' to '_cltxeh_function'.
    • Updated the usage comment from 'clxteh' to 'cltxeh'.
  • home-manager/programs/fish/functions/_clxwe_function.fish
    • File was renamed to 'home-manager/programs/fish/functions/_clwxe_function.fish'.
    • Updated the function definition name from '_clxwe_function' to '_clwxe_function'.
    • Updated the usage comment from 'clxwe' to 'clwxe'.
  • home-manager/programs/fish/functions/_clxweh_function.fish
    • File was renamed to 'home-manager/programs/fish/functions/_clwxeh_function.fish'.
    • Updated the function definition name from '_clxweh_function' to '_clwxeh_function'.
    • Updated the usage comment from 'clxweh' to 'clwxeh'.
Activity
  • No recorded activity on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@shunkakinoki
shunkakinoki disabled auto-merge March 11, 2026 23:10
@mesa-dot-dev

mesa-dot-dev Bot commented Mar 11, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Refactored Fish shell abbreviations for Claude Code commands, standardizing naming conventions from clx?e to clw?e or clt?e.

What changed?

  • home-manager/programs/fish/default.nix: Renamed Fish shell function-based abbreviations (clxtecltxe, clxtehcltxeh, clxweclwxe, clxwehclwxeh) and updated their underlying function names and registrations.
  • home-manager/programs/fish/functions/_cltxeh_function.fish: The generated Fish shell function _clxteh_function was updated and renamed to _cltxeh_function, indicating a modification in the underlying Home Manager configurations.
  • home-manager/programs/fish/functions/_clwxe_function.fish: The Fish shell function _clxwe_function was renamed to _clwxe_function throughout the file, including its definition, description, and usage examples, to correct an inconsistent naming pattern.
  • home-manager/programs/fish/functions/_clwxeh_function.fish: The Fish function _clxweh_function was renamed to _clwxeh_function to fix a typo, with corresponding updates to its internal definition and usage comments.

Description generated by Mesa. Update settings

@shunkakinoki
shunkakinoki merged commit 577d6d6 into main Mar 11, 2026
4 checks passed
@shunkakinoki
shunkakinoki deleted the refactor/correct-fish-abbreviations branch March 11, 2026 23:11

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 5 files

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors several fish function abbreviations to correct naming inconsistencies. The changes are mostly correct, involving file renames and updates to the fish configuration.

However, there are a few critical issues that need to be addressed:

  • The function file home-manager/programs/fish/functions/_cltxe_function.fish was renamed, but its content (the function definition and usage comments) was not updated to reflect the new name _cltxe_function. This will prevent the function from being loaded and cause the cltxe abbreviation to fail.
  • The test files corresponding to the renamed functions (e.g., spec/fish/_clxte_function_test.fish) have not been renamed or updated. This breaks the test suite, as it will try to source and run functions that no longer exist under their old names. Please update the tests to reflect the refactoring.

Additionally, there is a minor sorting issue in the list of function files in home-manager/programs/fish/default.nix which I've commented on.

Comment on lines +185 to 188
"_clwxe_function"
"_clwxeh_function"
"_clxe_function"
"_clxeh_function"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency and maintainability, this list of function files should be kept in alphabetical order. This block of new functions should be moved before "_clxe_function" on line 183.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors fish abbreviation/function naming to correct inconsistent clx* patterns by renaming abbreviations and their corresponding fish function definitions in the Home Manager fish module.

Changes:

  • Renamed fish abbreviations to cltxe/cltxeh/clwxe/clwxeh and updated the shellAbbrs mapping.
  • Renamed/updated fish function files and function declarations to match the new abbreviations.
  • Updated the fish functions list installed via xdg.configFile.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
home-manager/programs/fish/functions/_clwxeh_function.fish Updates function declaration/docs to the new _clwxeh_function naming.
home-manager/programs/fish/functions/_clwxe_function.fish Updates function declaration/docs to the new _clwxe_function naming.
home-manager/programs/fish/functions/_cltxeh_function.fish Updates function declaration/docs to the new _cltxeh_function naming.
home-manager/programs/fish/functions/_cltxe_function.fish Adds the tmux-enabled free-form prompt function for the new cltxe abbreviation (currently with a naming mismatch).
home-manager/programs/fish/default.nix Switches abbreviation mappings and installed function list from old names to the new names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 88 to +92
cliproxyapi = "_cliproxyapi_function";
cltxe = "_cltxe_function";
cltxeh = "_cltxeh_function";
clwxe = "_clwxe_function";
clwxeh = "_clwxeh_function";

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

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

These abbreviation renames will break the existing fish function tests under spec/fish/*_test.fish, which still source/call the old function names (e.g. _clxwe_function, _clxweh_function, _clxte_function, _clxteh_function). Since CI runs make fish-test (fishtape over spec/fish/*_test.fish) and the coverage spec enforces a spec/fish/${function}_test.fish per function file, the tests need to be renamed/updated to the new _clwxe/_clwxeh/_cltxe/_cltxeh names to keep CI green.

Copilot uses AI. Check for mistakes.
shunkakinoki added a commit that referenced this pull request Mar 12, 2026
Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.
shunkakinoki added a commit that referenced this pull request Mar 12, 2026
Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.
shunkakinoki added a commit that referenced this pull request Mar 12, 2026
Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.
shunkakinoki added a commit that referenced this pull request Mar 12, 2026
* fix(fish): update test files to match renamed function files

Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.

* fix(fish): rename internal function name in _cltxe_function.fish
shunkakinoki added a commit that referenced this pull request Mar 13, 2026
…1075)

* fix(fish): update test files to match renamed function files

Follows up on the abbreviation naming refactor (#1057) which renamed
_clxte/_clxteh/_clxwe/_clxweh function files but missed updating the
corresponding spec/fish test files.

Closes the CI failure in fish-test.

* fix(fish): rename internal function name in _cltxe_function.fish

* fix(cliproxyapi): inject OPENCODE_API_KEY into config during startup
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.

2 participants