I would like to make some commands that takes user inputs. I guess I will need to create some simple dialogue element. I looked at this link which may be related
But I must admit I don’t really understand what’s going on in the discussion, I’m quite new to coffee script as well as atom.
In my init file I have this command which is not working
atom.commands.add 'atom-text-editor', 'custom:cake', -> miniEditor = document.createElement('atom-text-editor') miniEditor.setAttribute('mini', true)
edit: 10+ if somebody could tell me how to format code (and thereby including tabs)
My best guess is that I need a command like “show” for the editor object, but again, I don’t know. Do you have a suggestion for a simple way to take inputs for a command, then I would appreciate it.