Git Product home page Git Product logo

ahk-studio's People

Contributors

maestrith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ahk-studio's Issues

Changing options via the Settings menu is not working

Changing options via the Settings menu is not working

Alt+M > Settings
Click the "Options" button
For me, changing options like "Word Wrap" in this pop up does not take effect
However using Alt+M > Word Wrap will work.

Bug: Entering [ opens OmniSearch

Bug

I cannot insert an [ within the editor - OmniSearch is opened instead ...

Steps to reproduce

  • Enter [within the editor
  • This opens OmniSearch with [on the input line - rather than inserting the [ into the editor

#Include file select feature

When "#Include" is typed (inserted from call tip), a file selection dialog is displayed to allow choosing a file whose path is inserted...

Although this is a nice feature, it can sometimes be intrusive and annoying, and it would be nice if there was an option like Disable #Include File Select Dialog that would disable the feature.

Wrong Version Number

File 'about.ahk' should be changed with a variable to reflect latest version instead of manually writing the version number for each changes.
Something like:
Gui,Show,,AHK Studio Help Version: %version%

1.0.64 Breaks Omni Search and Code Explorer

The changes in 1.0.64 badly broke Code Explorer and Omni Search.

Also, in Edit_Comment_Insert, should change the default InputBox value to RegExReplace(format, "%a_space%", " ") so that the %a_space% string doesn't show up in the input field.

Enhanced "Project" managemet

Currently the project management is supporting only a very restricted variant of Autohotkeys include mechanism:

Only File-Includes with one level subdirectory depth are supported:

#Include SubDir
#Include File.ahk

Would be nice if some more Include Variants would be supported, as not all Include files do live in a single subdirectories (only one level down):

#Include SubDir1
#Include SubDir2
#Include File1.ahk  ; Path: SubDir1/SubDir2/File1.ahk

or

#Include SubDir1/SubDir2/File1.ahk  ; Path: SubDir1/SubDir2/File1.ahk

or

#Include SubDir1 
#Include SubDir2/File1.ahk  ; Path: SubDir1/SubDir2/File1.ahk

or

#Include SubDir1/SubDir2 
#Include File1.ahk  ; Path: SubDir1/SubDir2/File1.ahk

or even

#Include <Class> 

AHKStudio should support for project detection all variants of Includes that AutoHotkey itself supports

Unregistered window class: specifically Scintilla

I keep getting this error when I run AHK-Studio.exe, both with the git version and with the one linked to in the ahkscript.org discussion thread: "Unregistered window class: specifically Scintilla." (Somebody in the thread mentioned that putting SciLexer.dll in the folder fixed this, but it's not working for me.)

Project Task Pad window

On large projects I frequent have to update multiple files to accomplish a single task. Often when I am doing this I notice something that needs to be changed. After finishing the new thing a few minutes later, I forgot the main task I was trying to undertake.

What I've taken to doing is having notepad open and letting it serve as my Task Pad. This way I can write down what I'm trying to do, and when I inevitably find some code that needs tweaking I can write that down in the Task Pad and either do it later or immediately. When done in another window, it starts to get lost among all the other windows I have open. Regardless, I am able to keep track of my tasks much better and be more efficient.

It needn't be a big text area. I was thinking it would go nicely at the bottom left or right of the screen and have the same width as the Explorer windows.

Suggestion: Add some functions to Index Current (hotkey F5)

Have the F5 refresh just do everything that has to do with indexing and refreshing anything to do in the program which will allow you to get rid of 6 menu items and possibly more that I didn't see. This will help de-clutter the menu. This is what I have so far...

<menu name="Refresh" clean="Refresh" tv="1556029">
    <menu name="Index Current File" clean="Index_Current_File" hotkey="F5" index="10"></menu>
    <menu name="Refresh Code Explorer" clean="Refresh_Code_Explorer" no="1"></menu>
    <menu clean="Refresh_Variable_List" name="Refresh Variable List" no="1"></menu>
    <menu clean="Index_Lib_Files" name="Index Lib Files" index="23"></menu>
    <menu name="Refresh Current Project" clean="Refresh_Current_Project" index="24"></menu>
    <menu name="Refresh Project Explorer" clean="Refresh_Project_Explorer" index="25"</menu>
</menu>

Give AHK-Studio version information

AHK-Studio should have a visible version somewhere within the GUI - therefore users would be able to refer to this version information when reporting bugs, feature requests ....

I've searched at the "obvious" places within the GUI to find some version info (Titlebar, Statusbar, About Box, Help Box) - but wasn't able to find some info about the currently used version.

Additional hint for github usage: if you use versions, give your corresponding github commit a version tag (for example: v0.10.1) - this results in github's release mecanism (see: https://help.github.com/articles/about-releases)

Incorrect parsing of labels

Within the "Code Explorer" the labels of the currently opened source file are displayed.

There is a bug in parsing the labels from sourcecode:
Strings with label syntax are NO labels if they are within comment blocks.

Example:
/*
Syntax: blahblahblah
*/

==> Syntax: is not a label!

Code explorer misses some classes

I've gor a groject containing 5 files with 5 classes - within the code explorer only 3 of the 5 classes are detected. The missing classes don't look different from the detected glasses.

See image

Permanent tooltip displays on file open

When opening a file, a tooltip is displayed for each of the files that is opened; the tooltip for the last file remains on screen until restarting studio.

capture

Feature Request: Sorted List of current command hotkeys

Current situation

To analyze the used hotkeys (to see which keys are unused or which keys are used duplicated) you have to look into the settings.xml file and do a manual evaluation.

Feature Request

Introduce a feature to display a sorted list of all used hotkeys (including the commands they are associated with).
Ideally this would be part of OmniSearch.

Helpers for code folding

Some additional functions concerning code-folding might be helpful.

  • Fold all
  • Unfold all
  • Fold Current Level
  • Unfold Current Level
  • Fold level X (where X = 2 to ?)
  • Unfold level X (where X = 2 to ?)

Code Explorer Not Storing Events

If I click something in the code explorer it browses to it in my script. If I click on something else in the code explorer while it is browsing to the previous item it only goes to the previous item and then if I continue to click on the second item it does nothing. Perhaps make that thread critical so it finishes searching before starting the second click

Feature Request: Enhanced Command Selection

Current Situation

Most commands and settings can be accessed via menus, hotkeys or toolbar items. As there are many commands its quite difficult to remember the hotkey or the location of a command within the menus.

Therefore I suggest a new method to find commands and execute them. The idea is taken from Notepad++

Feature Requests Searching Commands

  • Implement a new command search toolbar with an edit field (similar to the quick search toolbar
  • Typing within the new toolbar-edit-field opens an "Instant-Search-Result-Box"
  • The "Instant-Search-Result-Box" contains all commands filtered on base of the entered text in the edit field (Entering Print list all commands containing Print ....)
  • Selecting an entry from "Instant-Search-Result-Box" executes the corresponding command

2014-09-12_07-33-22

This would it make way easier to find certain commands ...

Bug: Editing Hotkeys via MenuEditor

Bug

When editing/setting a hotkey in Menu Editor the Menu Editor does not refresh to display the newly set hotkey

How to reproduce

Assign new hotkey via Menu Editor - the new hotkey is not shown in Menu Editor until the Menu Editor is closed and reopened again


Minor suggestion/idea / Thoughts

Dialogbox Edit Hotkey does not have Apply - Cancel - Abort Buttons. I personally feel always a litte uncomfortable if they are missing. I always think by myself: when will the changes be applied? Does pressing Return apply the changes? What will happen if I press the Close Button? Will the changes be applied or rejected? This questions came in my mind in conjunction with the error reported above: I changed hotkey via Edit hotkey and closed the box. The new hotkey was not displayed ... I thought: Did I something wrong?

Bug: Changed file indicator

Current Situation

If you edit a file there will be an asterisk in CodeExplorer in front of filename, indicating the file was edited but not saved yet.
Saving the file, the asterisk disappears

Bug

If the file is part of several projects, the asterisk occurs on all identical files in all projects. But saving the file, only one asterisk is removed, while it remains on other projects ...

Example

File Mouse.ahk is part of two projects: XX.ahk and EDE.ahk ... Watch the video:

rezize

Enhanced toolbar features

Currently the toolbars are restricted in several ways:

  • There is a fixed number of toolbars - users cannot create own toolbars
  • Each offered toolbar has a fixed number of buttons - the buttons are not freely assignable to an other toolbar
  • the number of commands/buttons which are available as toolbar commands are quite limited - more commands might be offered to be placed as toolbar buttons

Suggestion: Remove/loosen these restrictions

Edit Replacements

Since Edit Replacements was changed to allow for multi-line & tab character input, it is no longer necessary to convert "_`n_" strings found in the replacement to newlines.

Suggest that the replacement be inserted as literal text to allow the string "_`n_" to be used in replacement values.

Feature Request: Bookmark support

Would be nice to have same bookmark support as most other editors have

  • DONE: Set bookmark
  • Clear bookmark
  • Jump to next/previous bookmark
  • Clear all bookmarks
  • DONE: Display bookmarks in linenumber "bar" (perhaps as overlay icon on linenumber or by setting the linenumber background to a different colour - this would not make the linenumber bar wider

In a second step elaborated bookmark features would be nice:

  • DONE: Bookmark explorer (as separate window) listing all bookmark
    • Added: with possibility to edit bookmarks there also
  • REJECTED: Functionality to set bookmarks on all functions, labels (anything the code explorer is able to detect to). This would allow a easy navigation from e.g. function to function within source by jumping to next next bookmark
  • more ideas to come ;-)

Icons for menu items

It would be a nice gimmick to have (user definable) icons for menu items. This would give an optical guidance while searching for menu items.

Plugin SDK

I'm curious if you have updated documentation on the current plugin SDK for studio?

I have multiple plugins that I had written some time ago using the style shown below, but they haven't seemed to work for a while now. Any help would be appreciated.

Example old plugin (used to work):

addmenu("Enhanced Comment Line Toggle", A_ScriptFullPath)
hotkeys([1], {"NumpadSub": "EnhancedLineToggle"})

Enhanced_Comment_Line_Toggle()
{
    EnhancedLineToggle:
    sc := x.csc()
    sc.2078
    pi:=posinfo(), sl:=sc.2166(pi.start), el:=sc.2166(pi.end), end:=pi.end
    single := sl = el ? 1 : 0
    while, (sl <= el) {
        letter := sc.textrange(min := sc.2128(sl), min+3)       
        if (min > end && !single)
            break
        if (Trim(sc.textrange(min, sc.2136(sl))) = "") {
            sl++
            end--
            Continue
        }
        else if (letter = ";~ ") {  ; Remove SciTE4AutoHotkey style comment
            sc.2190(min)
            sc.2192(min+3)
            sc.2194(0, "")
            end--
        }
        else if (SubStr(letter, 1, 1) = ";") {  ; Remove a standard comment
            sc.2190(min)
            sc.2192(min+1)
            sc.2194(0, "")
            end--
        }
        else {  ; Insert a comment symbol
            sc.2190(min)
            sc.2192(min)
            sc.2194(3, ";~ ")
            end++
        }
        sl++
    }
    sc.2079
    return
}

Edit Comment Insert bug

In Edit_Comment_Insert() there are 2 issues:

  • The line settings.add2("comment","",insert) doesn't seem to write the settings correctly to the settings file. This change makes it work correctly:

Old:

insert:=RegExReplace(insert," ","%a_space%")
settings.add2("comment",,insert)

Modified:

settings.add({path:"comment", text:RegExReplace(insert,"","%a_space%")})
  • Debugging message box was left in at end of Edit_Comment_Insert(): m(settings.ssn("//comment").text) should be remove/commented.

Great updates, BTW! I really like the new object auto-completion feature!

Caret Line Background theme option changes the text color

Alt+M > Theme
Changing the Caret Line Background, which I expected to only change the Current Line Background color, changes the text color of the main text

I was able to get it working by just resetting the theme and the caret line background seemed to stay changed, but it took 3 iterations to get it to play nice

Bug: Ordering of Menu items

Current Situation

Within the Menu Editor you can rearrange the menu items. You can also introduce submenus within your menus

Bug

Unless my submenu is placed as the first menu item within the menu editor it is displayed as last item within AKHKStudio menus ...

Respect the ordering of the menu items from Menu Editor when displaying the menus in AHKStudio

2014-09-12_08-07-37

2014-09-12_08-07-57

Feature Request: Enhanced command finder within Menu Editor

Current Situation

To locate commands within the Menu Editor there is a drop-down Editbox, where text can be entered and be jumped to the found command

It's quite difficult to find a certain command here if you don't know its exact name

2014-09-12_07-28-32

Feature Request

  • Implement the drop-down Editbox as "Instant-Search-Result-Box" (similar to #16)

This would it make way easier to find certain commands ...

DragnDrop Behaviour

There's a bug when dragging a file onto AHKStudio. The file drag'n'dropped onto AHKStudio is not opened (I would expect a file dropped onto editor to be opened immediately and be the active file)

How to reproduce:

  • Open a file2 in AHKStudio normally
  • Drag'n'Drop a new file2 onto AHKStudio

=> file2 occurs in project explorer - but file1 is still the opened file

Clipboard History window

I often copy blocks of text for use in many other places. Once pasted, I frequently have to customize it just a bit before I move on to the next place where I need to use the copied text. When customizing, I have to be mindful to NOT copy/paste any of the tweak text or else I lose my clipboard data. Sometimes I forget or just have to put something new on the clipboard.

Would it be possible to have a clipboard history window that showed the first line of text from each clipboard entry, truncated so that there is no text wrapping? So each line would be the text from a different clipboard entry. Then, hopefully, all someone would have to do is click on the clipboard history line they want to load it back into their clipboard?

Again, it needn't be a big area, just the size of the Explorer area would suffice.

Sorry, I hope I'm not being annoying. I'm just putting my thoughts out there for you to reject if you see fit. Or, I guess I could try delving into your code and seeing if I could make the change, but I'd appreciate a pointer in the correct direction, of course!

Code Explorer organization

With multiple files open, the code explorer places the labels, functions, classes, etc. from all of the open files under every file in the explorer. In other words, every root item (file) in the code explorer has the same children, containing all matched items.

Feature Request: Navigation stack

Description

If you have a large project you jump around your files a lot (for example to look up the parameters of a function you want to call). Going back to the point in sourcecode from where you started exploring has to be done manually.This is annoying (as I mostly cannot remember my starting point ... ;-))

Feature Request:

Implementation of a "Navigation stack". This would allow "Forward" and "Backward" movement on the "Navigation stack" via commands/toolbar buttons (like "Forward"/"Backward" in Web-Browsers)

Visual highlight current line

Most editors I know do have a visual highlighting of the current line (i.e. where the cursor is on) - see Example

This allows much more easier identification of the current line. Would be nice to have it in AHKStudio as well

Feature Request: Instanous help on prefixes in OmniSearch

Current situation

As OmniSearch uses prefixes to search for different entities (functions, classes, commands ...) it's difficult to remember which prefix is used for which entity.

Feature Request

Introduce a prefix ? into OmniSearch - when ? is entered in OmniSearch list all supported prefixes and their purpose in OmniSearch

Compiling a script and AHKS losing the line it was on

You fixed the issue with Compile_AHK.exe for saving comments inside the script....thanks for that!

There seems to be a new issue though when compiling a script. When I compile a script with Compile_AHK.exe it seems to compile okay and then once compiling is done it jumps to the very top of the script. I pretty much lose the line that I am working on.

Wondering if AHKS knows that the file was edited so it moves to the edited line....is there an option for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.