Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

add command to run previously run editor #119

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

apteryx
Copy link

@apteryx apteryx commented Feb 8, 2016

When switching between files it is useful to be able to run the last run script without having to switch back to it.

@@ -70,11 +71,13 @@ class AtomRunner
atom.commands.add 'atom-workspace', 'run:selection', => @run(true)
atom.commands.add 'atom-workspace', 'run:stop', => @stop()
atom.commands.add 'atom-workspace', 'run:close', => @stopAndClose()
atom.commands.add 'atom-workspace', 'run:prev', => @run(false, true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the previous run was a run:selection? The implementation should be robust enough to support any previous execution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants