bruno icon indicating copy to clipboard operation
bruno copied to clipboard

[Feature Request] support recursive traversal for `.bru` files

Open f15u opened this issue 1 year ago • 3 comments

At the moment Bruno expect to have a folder where every route is.

In our project we don't group by kind of file (eg: docs, controller, model, hook, view) but by context. The idea is to co-locate .bru files with other sources, like the HTTP route that define the endpoint.

Another point is, when using VSCode, we can use capture patterns and group .bru files with other sources:

└── MyUseCase
    ├── MyEndpoint.ts
    ├── MyEndpoint.bru
    ├── MyEndpoint.md
    └── MyEndpoint.spec.ts

Traversing recursively the collection folder, would unlock this possibility being backward compatible with old version.

f15u avatar Feb 01 '24 10:02 f15u

Hmm.. Interesting. approach !

The UI already traverses and only displays .bru files. Technically you should be able to open your source code repo in Bruno and it would automatically list all the requests in yor code. Have you tried that ?

helloanoop avatar Feb 01 '24 11:02 helloanoop

Didn't know that, thank you for letting me now. This is already in the right direction!

What we personally don't like is that we have the explorer all the folders even if they're unrelated to the Bruno collection creating a lot of noise.

Given the configuration file (bruno.json) and the need to open it in the client, I was thinking to support a relative path to the configuration file where Bruno should read the collection and display only requests. If not present then should use the cwd (like how it already works).

f15u avatar Feb 01 '24 14:02 f15u

Same requirement for me. Any news on it?

FPierre avatar Mar 05 '24 20:03 FPierre