Skip to content

Commit

Permalink
Copy path of executable to clipboard
Browse files Browse the repository at this point in the history
Relates to idris-hackers#138.
Copy the path of `:exec expr` to the clipboard and present a atom notification.
This solution is not ideal, but I could not find a comint buffer for atom.
  • Loading branch information
Markus Klink committed Jul 19, 2017
1 parent 62aa080 commit bf4e6a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/idris-model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ class IdrisModel
when ':warning'
warning = params[0]
@warnings[id].push warning
when ':run-program'
options =
detail: "The path for the compiled program. It was copied to your clipboard. Paste it into a terminal to execute."
dismissible: true
icon: "comment"
buttons: [
{text: "Confirm"}
]
atom.clipboard.write params[0]
atom.notifications.addSuccess params[0], options
when ':set-prompt'
# Ignore
else
Expand Down

0 comments on commit bf4e6a1

Please sign in to comment.