public
Created

Autohotkey file to use NotePad++ with the Julia console for REPL-oriented development

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
;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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.