romgrk / termrk

Terminal for atom, using pty.js & term.js
MIT License
33 stars 7 forks source link

User commands #101

Closed anking closed 6 years ago

anking commented 6 years ago

I cannot find an ability to setup user command in recently downloaded atom editor. File userCommands.cson doesnt exist by default in atom home folder. Creating it there doesnt help, and nowhere is settings i can find a place to set a path for this file.

romgrk commented 6 years ago

Do you see the termrk settings? If not, be sure to activate the extension before, then check the settings again. Please attach a screenshot of what you see for the termrk settings.

anking commented 6 years ago

@romgrk I think I got confused, it was saying that filename can be changed in Atom settings, so i was looking at IDE settings instead of plugin settings. Everything is there. Commands that I add to the file, however doesn't seem to showup in keymaps. In a description you are using different format: 'command' in a single quotes and command without quotes. i tried both ways without any luck, reastarted plugin and IDE, no luck. am i missing something?

romgrk commented 6 years ago

You'll also need to restart the editor for the file to be loaded. Then, open the Command Palette and type "termrk"; in the suggestions, you should be able to see the termrk:command-xxxx items. You can map the commands to keymaps in your own config files.

anking commented 6 years ago

I tried to restart atom, and entered this commands in different format but no luck.

settings:

Am i missing something here?

On Mon, Jul 30, 2018 at 11:36 AM, Rom Grk notifications@github.com wrote:

You'll also need to restart the editor for the file to be loaded. Then, open the Command Palette and type "termrk"; in the suggestions, you should be able to see the termrk:command-xxxx items.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romgrk/termrk/issues/101#issuecomment-408907509, or mute the thread https://github.com/notifications/unsubscribe-auth/AImhVomf9KtnFqWQ4CpLjR-bSGuHysSQks5uLygKgaJpZM4VlccA .

-- I am not a product of my circumstances. I am a product of my decisions.

---------------------- Sincerely yours, Andrey Smirnov

romgrk commented 6 years ago

I don't see your settings

romgrk commented 6 years ago

No, the screenshots are not visible. I'd recommend using the github website to add images.

anking commented 6 years ago

Please see settings below: unnamed unnamed 1

romgrk commented 6 years ago

And could you show me the file /home/anking/.atom/userCommands.cson?

anking commented 6 years ago

Here it is: image

romgrk commented 6 years ago

Ok, and when you open the development console (ctrl-shift-i), do you have anything related to termrk? Be sure to trigger the command termrk:show (or termrk:toggle) first.

anking commented 6 years ago

Looks like it start to show custom commands after running termrk:show only

On Fri, Aug 3, 2018 at 12:06 AM, Rom Grk notifications@github.com wrote:

Ok, and when you open the development console (ctrl-shift-i), do you have anything related to termrk? Be sure to trigger the command termrk:show (or termrk:toggle) first.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romgrk/termrk/issues/101#issuecomment-410138602, or mute the thread https://github.com/notifications/unsubscribe-auth/AImhVtpV1w97w-AbJtAih9onBUb5hgPFks5uM8w6gaJpZM4VlccA .

-- I am not a product of my circumstances. I am a product of my decisions.

---------------------- Sincerely yours, Andrey Smirnov

romgrk commented 6 years ago

Yes, that is normal. The thing is, to not add too much startup time, atom allows the extension to load on-demand, whenever the user activates it. Therefore, any loading is not done until you activate termrk once.