Skip to content

@catawbasam /gist:3858529
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Autohotkey file to use NotePad++ with the Julia console for REPL-oriented development
;RGUI-like AutoHotKey macros for copying code from Notepad++ to Julia console for REPL-oriented development
; control-F5 will select the current line of text in Notepad++
; control-F6 pastes the clipboard contents into the Julia console, presses <Enter>
; then re-activates Notepad++ and moves the cursor down a line.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;
; # = windows key
; ^ = control
; ! = alt
; + = shift
;select and copy current line in Notepad++, which is assumed to be the active window
^f5::
Send,{Home}+{End}^c
return
;copy clipboard to julia console
; then re-activate Notepad++ and move the cursor down to support stepping through
^f6::
WinGetActiveTitle, InitTitle
IfWinExist, julia.bat - Shortcut
{
WinActivate
MouseMove, 60, 60
MouseClick, Right
Send,{Enter}
if RegExMatch(InitTitle, "- Notepad\+\+$")
{
WinActivate,%InitTitle%
Send,{Down}
}
}
else
MsgBox Julia console not found.
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.