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

feat: configuration settings #26

Open
Armando-CodeCafe opened this issue Apr 12, 2024 · 9 comments
Open

feat: configuration settings #26

Armando-CodeCafe opened this issue Apr 12, 2024 · 9 comments

Comments

@Armando-CodeCafe
Copy link

Request to allow for some additional configuration of the plugin. things like being able to add color switching to the status bar so every mode has a different color, or change the name of the modes. also how the insert modes work. for example currently the insert mode and append keys both do the same thing and when exited will move one key stroke backwards.

@jasonwilliams
Copy link
Owner

Hey thanks, the color switching sounds reasonable. The mode changes I'm less understanding off, what would you have preferred to change them to?

Also would you be up for contributing this change? It should be straight forward.

@Armando-CodeCafe
Copy link
Author

Armando-CodeCafe commented Apr 15, 2024 via email

@jasonwilliams
Copy link
Owner

jasonwilliams commented Apr 18, 2024

Hey @Armando-CodeCafe most of the logic is here: https://github.com/jasonwilliams/vscode-helix/blob/main/src/statusBar.ts#L68-L95

Your best bet is:

  • cloning this repo,
  • running npm run watch
  • hitting debug in VSCode (which will open a sub window)
  • changing the colors here or adding configuration. You can see a sample extension which has configuration here

The colors were coming from here:
https://code.visualstudio.com/api/references/theme-color

@Armando-CodeCafe
Copy link
Author

Armando-CodeCafe commented Apr 19, 2024 via email

@jasonwilliams
Copy link
Owner

Sorry I don't understand your question, what do you mean link that to a configuration option?

Maybe start basic, try just adding a basic config to the extension and we can go from there

@Armando-CodeCafe
Copy link
Author

Armando-CodeCafe commented Apr 20, 2024 via email

@jasonwilliams
Copy link
Owner

I see, have a look at this comment above, I link to an example project there where you can work it out #26 (comment)

@tmpm697
Copy link

tmpm697 commented May 20, 2024

@jasonwilliams so currently no way to load external config file, i have config in ~/.config/helix but it seems not load it.

@jasonwilliams
Copy link
Owner

jasonwilliams commented May 20, 2024

@jasonwilliams so currently no way to load external config file, i have config in ~/.config/helix but it seems not load it.

Sadly not, I have forked the Vim Extension which does support reading config files but it may take a while to migrate that over to Helix config. Any contributions would be appreciated

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

No branches or pull requests

3 participants