Porting from Atom - problem with init.coffee #156
-
I'm trying to move all my configuration from Atom to Pulsar, but I am having some problems. Particularly, the contents of the init.coffee file seems to be ignored, as I define there some new commands and they have not been added. Any idea about why this may be happening? I understand that CoffeScript is still supported, but JavaScript is somehow preferred? If so, is there a way to automatically translate the init.coffee file to the new JavaScript syntax? I read what is said at https://github.com/orgs/pulsar-edit/discussions/63 about the automatic conversion, but if I understand it well this is something planned but not yet available. Is this correct? Should I wait before migrating? Thank you for any tips. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
So on this, I don't beleive there's any logic yet to automatically move your configuration files. And while JavaScript is preferred, that really means the developer team prefers to program in JavaScript, and I don't see us removing support for CSON config files anytime soon. But to the issue at hand, the biggest question is where is your And to the last point on waiting, I don't think it's all that needed. The most you need to do, in reference to config files, is install pulsar, then copy the entire |
Beta Was this translation helpful? Give feedback.
-
I did as suggested (I basically copied the whole .atom folder as .pulsar). My init.coffee file is in the /.pulsar folder. However, I define several commands in the init.coffee file and then these commands are not available in Pulsar. For example, my file starts with: atom.commands.add 'atom-text-editor', 'custom:myFirstCommand', -> But then the command custom:myFirstCommand is not available in the Pulsar editor. This works well with Atom. Any idea of what may be happening? |
Beta Was this translation helpful? Give feedback.
-
Could you maybe share your init.coffee to see if it can be replicated? |
Beta Was this translation helpful? Give feedback.
-
To have a comment marked as an answer, that can be easily found again later. As @savetheclocktower suggested the So the issue was resolved by removing the |
Beta Was this translation helpful? Give feedback.
To have a comment marked as an answer, that can be easily found again later.
As @savetheclocktower suggested the
.pulsar
folder contained ainit.js
(as it was created by default on installation) and was choosing that file over @silarri'sinit.coffee
.So the issue was resolved by removing the
init.js
file from the config folder.