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

[Feature] New bru.scriptpath with path to .bru file in addition to bru.cwd #2480

Open
1 task done
gajanak opened this issue Jun 18, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@gajanak
Copy link

gajanak commented Jun 18, 2024

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

Hi,

I have collections with many Sub Directories for organisation.

It would be nice if there is something like bru.cwd() which returns path to Collection , like
bru.scriptPath() or something... which return path or path+filename to the .bru File.

Background: want to load assets from Directory where the bru file resist.

Perhaps anyone has better idea for a good Name.
Filename or path.

Or does there exist a workaround ? some undocumented Variables ?

Perhaps, This could help #2064 , too.

Thanky you.

Mockups or Images of the feature

// One of:
bru.cwd() // absolute collection  
bru.relativePath() // relative path of current bru to collection
bru.bruFile(), bru.currentFile()  // absolut filename to bru file ?
bru.log("Blub")  // Output send to Timeline Tab for Debugging. (bonus idea)
@gajanak gajanak added the enhancement New feature or request label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant