Skip to content

Add filename based completion for class names #3559

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nithinbekal
Copy link
Contributor

Motivation

Sublime has a feature where it autocompletes a class name based on the file name. This implements support for this such that if you open student_profile.rb, it will autocomplete StudentProfile.

Implementation

The implementation takes the file's basename and performs basename.split("_").map(&:capitalize).join to get the class name.

Automated Tests

Added tests.

Manual Tests

Screen.Recording.2025-05-29.at.12.05.30.PM.mov

Copy link

graphite-app bot commented May 29, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@nithinbekal nithinbekal added the enhancement New feature or request label May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant