Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

SL5_AHK_Refactor_engine


  • Please log in to reply
11 replies to this topic
SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

https://github.com/s...aster/README.md

 

SL5_AHK_Refactor_engine is a developer productivity engine for shk developers with scite4ahk

/* SL5_AHK_Refactor_engine is free for personal and commercial use. */

 

 
 
/* SL5_AHK_Refactor_engine is free for personal and commercial use.
 * you could type into this document. please dont destroy it.
 */
 
; features:
 
;~ strg alt v (using the line)
;~ examples:
;~ 1 > d_1 := 1
;~ 123 > d_123 := 123
;~ abc > abc = %abc%
; %abc% > abc = %abc%
;~ hi all> hi_all = hi all
;~ strLen_mouse := StrLen( "mouse") ;
;~ tim = %tim%
 
;~ strg + enter
;~ hi("  > hi(" ") ; 
;~ hi("jim > hi("jim") ; 
 
;~ strg + % (its using clipboard content)
;~ clipboard > %clipboard% = clipboard (line:%A_LineNumber%) `n 
;~ all behind %clipboard% is selected. so you simly could delete it.
 
;~ shift j ( changes to carret position)
;~ carret > %carret% 
;~ %carret% > %carret% 
;~ %carret% > "carret" 
;~ "carret" > carret 
 
;~ shift alt c (changes to line)
;~ 123456 > 1, 2, 3, 4, 5, 6, 
;~ 1, 2, 3, 4, 5, 6, > 1: 2: 3: 4: 5: 6:
;~ 1: 2: 3: 4: 5: 6: > 1, 2, 3, 4, 5, 6,
 
;~ str shift up / down
;~ line up / line down
 
;~ strg alt m
;~ selection > method
 
;~ win left / right
;~ move to last / next functions navigation
 
;~ alt c (changes word at your carret. dont need to select or to copy. )
;~ kjhkjh > %kjhkjh% 
;~ %kjhkjh% > "kjhkjh"
;~ "kjhkjh" > kjhkjh 
 
;~ strg shift BackSpace
;~ jumps to last edit position
 
;~ strg b
;~ jumps to definition
 
; second line of keyboard
;~ 1>! 2>" 3>§ 4>$ 5>% .....
 
;~ tab
;~ line tab and down
 
;~ strg shift v
;~ opens Clipboard history for the last 20 or so (using copyQ portable version)
; please install CopyQ and add a global hotkey STRG+SHIFT+1 (v is not possible there - or?)
 
 
 
;~ lll
;~ lll(A_LineNumber, __DIR __ __FILE __,Last_A_This)
; it writes to logfiles in log directory
; not inside online versione jet 15-06-14_20-27
 
; peprocessor actions:
;~ __DIR __ replacing with subfolders name
;~ __FILE __ replacing with fileName 
; not inside online versione jet 15-06-14_20-27
 
;~ BTW preprocessor also looks inside subdir scripts, copes includes inside and corrects includes path... and much more.
; not inside online versione jet 15-06-14_20-27
 
;~ AutoUpdate
;~ script offers autoupdate (not implementeed totally jet. 15-06-14_20-27)
 
;~ autoRun if saved
;~ not in online version now 15-06-14_20-42
 
;~ autoSave if iddle
;~ not in online version now 15-06-14_20-42
 
;~ automatically creates script icons with significant letters of the script
;~ not in online version now 15-06-14_20-42
 
;~ strg shift z
;~ redo 
 
;~ F1 obens autohotkey help
;~ clicking or movoning carret past idle time open autohotkey help
;~ ö opens gÖögle ;) gooogle help.
 
;~ enjoy, many thanks so many people for so great tool and help. thanks for help, bug reports and much more :)
;~ best regards Se from SL5


SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

10 changed files with 670 additions and 2,757 deletions15 minutes ago

 

run SL5_AHK_Refactor_engine_v0.5.ahk

and enjoy :)



SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

kann jetzt auch noch

 

Reformat Code via Ctrl+Alt+L

Übrigens nutzten viele Entwicklungsumgebungen den gleichen shortcut dafür (siehe z.B. hier: https://www.jetbrain...ource-code.html )

 

https://github.com/s...Refactor_engine



SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

Beispiel-Refactoring

 

Das machts Refactoring. Aus sowas Unsinnigem wie

 

#IfWinActive ahk_class SciTEWindow
; Refactoring Engine
fun()
{ Last_A_This:=""
if(false)
Too(Last_A_This)
s := Com("{D7-2B-4E-B8-B54}")
if !os
{ ExitApp }
; comment :) { { {
ExitApp }
fun2(do){
dohaa }
funZ(do){
doZZ }
 
wird
 
#IfWinActive ahk_class SciTEWindow
; Refactoring Engine
fun()
{
   Last_A_This:=""
   if(false)
      Too(Last_A_This)
   s := Com("{D7-2B-4E-B8-B54}")
   if !os
   {
      ExitApp
   }
   ; comment :) { { {
   ExitApp
}
fun2(do){
 
   dohaa
}
funZ(do){
   doZZ
}


joedf
  • Administrators
  • 986 posts
  • AutoHotkey Foundation
  • Last active: Jul 18 2017 06:01 PM
  • Joined: 20 May 2012
Maybe some explanation or a screenshot would be nice. How does it increase productivity?
Why ahkscript.org? - autohotkey.com is outdated

SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

maybe a code box?


  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."

SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

Maybe some explanation or a screenshot would be nice. How does it increase productivity?

 

ok, sure :) weekend probably. would create a short demo video (demo video script then i will capture for youtube)

 

SnowFlake what you mean by code box? 



SnowFlake_FlowSnake
  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012

its a box to store all the code in like this:

#IfWinActive ahk_class SciTEWindow
; Refactoring Engine
fun()
{ Last_A_This:=""
if(false)
Too(Last_A_This)
s := Com("{D7-2B-4E-B8-B54}")
if !os
{ ExitApp }
; comment :) { { {
ExitApp }
fun2(do){
dohaa }
funZ(do){
doZZ }
 
wird
 
#IfWinActive ahk_class SciTEWindow
; Refactoring Engine
fun()
{
   Last_A_This:=""
   if(false)
      Too(Last_A_This)
   s := Com("{D7-2B-4E-B8-B54}")
   if !os
   {
      ExitApp
   }
   ; comment :) { { {
   ExitApp
}
fun2(do){
 
   dohaa
}
funZ(do){
   doZZ
}

  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."

SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

added feature Rename Variable/Symbol, Shift+F6

 

 

it replaces names in namespace and sub namespaces.
it depends if your cursor is inside { } or outside { }.
means it's different if you replace variable names inside function body or inside function signature. that gives you the ability to replace calling names also if you want.

 

 

 

in example below cursur is staning at 

   dos

and was pressed Shift+F6

 

input dialog folowed (asking a new name).

 

inserted name was newName.

 

here could you see how file was changed :

fun2(dos){
   dos
}
fun3(dos){
   dos
}
funZ(do){
   doZZ
}

to

fun2(dos){
   dos
}
fun3(newName){
   newName
}
funZ(do){
   doZZ
}


SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

added 

Alt + Up/Down
==>

Go to previous/next method



SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015

first 5min demo video uploaded 

 



SL5
  • Members
  • 29 posts
  • Last active: Jan 15 2018 09:05 AM
  • Joined: 11 May 2015
tested with OS windows 10.
 
here you could see a installtions video (about 2 min) :