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

New line commands request #290

Closed
andersennl opened this issue Nov 22, 2014 · 3 comments
Closed

New line commands request #290

andersennl opened this issue Nov 22, 2014 · 3 comments
Labels
rejected rejected requests

Comments

@andersennl
Copy link

It would be nice to have Insert new line above current line and Insert new line below current line commands to use (as seen in Atom). If you need further details, please let me know.

@1024jp
Copy link
Member

1024jp commented Nov 22, 2014

Hmm, I think such particular commands should be realized by scripting. I guess the most of user have no idea with this action. Is there proper scene to use this action?

Anyway, I've quick written the scripts in AppleScript. (You should improve them if you don't wanna get the short flick after the execution.)

Put these into your ScriptMenu folder and it probably works. You can even add your favorite shortcut to this. See scripting manuals in the Help menu for details.

@andersennl
Copy link
Author

I know many people using these commands all the time. There are just saving time in day to day programming.

Thanks a lot for your scripts, I'll try them. Did I understand it right that I can use Ruby as well to write these scripts?

Am 22.11.2014 um 10:58 schrieb 1024jp notifications@github.com:

Hmm, I think such particular commands should be realized by scripting. I guess the most of user have no idea with this action. Is there proper scene to use this command?

Anyway, I've quick written the scripts in AppleScript. (You should improve them if you don't wanna get the short flick after the execute.)

https://gist.github.com/1024jp/c49ef0c37097f528f1bd
https://gist.github.com/1024jp/6f1a28df9c2caf0f0104
Put these into your ScriptMenu folder and it probably works. You can even add your favorite shortcut to this. See scripting manuals in the Help menu for details.


Reply to this email directly or view it on GitHub.

@1024jp
Copy link
Member

1024jp commented Nov 24, 2014

Yes CotEditor can also run Ruby, Python, shell script etc...
The difference is CotEditor can treat more commands from AppleScript than other languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejected rejected requests
Development

No branches or pull requests

2 participants