Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cwd launch setting #173

Closed
JMPSequeira opened this issue Nov 29, 2021 · 3 comments
Closed

Cwd launch setting #173

JMPSequeira opened this issue Nov 29, 2021 · 3 comments

Comments

@JMPSequeira
Copy link

Would it be possible to support the current working directory (cwd) as a launch setting?

I request this as all of Ahk file crawling is relative to current working directory (1.1 at least).

Example:

  • RootDir:

    • afolder\file.ahk
    • testfolder\test1.ahk
    • testfolder\test2.ahk
  • Code on afolder\file.ahk:

Loop, Files, test*.ahk, R
    MsgBox, % A_LoopFileLongPath

Running from a command line on RootDir AutoHotkey .\afolder\file.ahk will find the test files.
But if debugging I can never have a different cwd thus never getting the expected results.

I already saw some discussion around this issue here but I do think the op didn't make a good case for it.

thanks for your time

zero-plusplus added a commit that referenced this issue Nov 29, 2021
Support `cwd` attribute in launch.json
@zero-plusplus
Copy link
Owner

I am using the DeepL translation.

Implemented cwd attribute in launch.json. This will be included in the next release.

Note that the specification of A_WorkingDir has changed for v2, so you need to run the following code to make it the same as v1.

SetWorkingDir(A_InitialWorkingDir)

The next release may take some time.

@zero-plusplus zero-plusplus mentioned this issue Nov 29, 2021
95 tasks
@JMPSequeira
Copy link
Author

Thank you

@zero-plusplus
Copy link
Owner

@JMPSequeira
I released 1.10.0 which includes this feature.

Thanks for the great idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants