oni icon indicating copy to clipboard operation
oni copied to clipboard

Unable to change configuration on Windows

Open allengoebl opened this issue 8 years ago • 3 comments

I ran into issues while trying to change the font size in Oni. Here is what I did:

  1. I first tried using the "Edit Oni config" option in the menu. This opened a file called "config.tsx". I was able to make changes to this file after setting it to modifiable but these changes seemed to revert every time I reopened oni and did not have any effect.
  2. Based on the documentation it looked like I was missing a "config.js" file- https://onivim.github.io/oni-docs/#/./oni.wiki/Configuration. I created a "config.js" in my "AppData/Roaming/Oni" folder using the example from the documentation. This seems to have resulted in strange behavior with regards to spacing and the autocomplete. See the image below.

image

allengoebl avatar May 06 '18 09:05 allengoebl

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar May 06 '18 09:05 oni-bot

I think the spacing issues are due to the default config you've used containing "editor.fontFamily": "Monaco",, which isn't installed on Windows by default I don't think? If you remove that line, you'll revert back to the default Windows font.

I think there is an issue somewhere to do with dealing with that nicely, since as you can see it just causes lots of weird errors, when in reality it would be better if it didn't change if the font does not exist.

Not fully sure why your config.tsx changes weren't applied.... When you say "setting it to modifiable", is there a chance you were editing the reference buffer? That is, by default you get something like below, where the buffer on the left is the current config, shown as a reference. The buffer on the right is your actual config which you can edit to override these values.

image

Its not the most obvious currently, but hopefully once we get the reference one tidied up with comments to explain the options and such, it should look more like a reference than your current config.

(My config is fairly long, the default config.tsx looks like this: https://github.com/onivim/oni/blob/073c39542f174459f8787e37accd0860b1d384db/vim/core/oni-plugin-typescript/src/TypeScriptConfigurationEditor.ts#L13-L50)

CrossR avatar May 06 '18 11:05 CrossR

Thanks for your help. My problem was entirely user error. Based on your explanation, I was able to get my config.tsx setup properly.

allengoebl avatar May 06 '18 23:05 allengoebl