kergoth / bb

Subcommand-based bitbake tools
MIT License
39 stars 12 forks source link

Feature request: Option for bb edit (or a new sub command like 'recipe-files') to simply output the list of files to be edited #2

Open mbrown9764 opened 11 years ago

mbrown9764 commented 11 years ago

This would allow a user to simply see recipe file locations, as well as enable the user to do something like: gvim $(bb recipe-files foo)

This allows more flexibility with the editor and how it's opened.

Another possible option: a new flag like "-a this-layer" to bb edit that will automatically create the properly named bbappend file under the requested layer and add it to the editor. This would be useful for the new sub-command 'recipe-files' as well.

kergoth commented 8 years ago

FYI, the new flag option you're looking for is available now via recipetool:

$ recipetool newappend -e /path/to/layer recipe-name

Will spawn a text editor editing the recipe and the new bbappend.

I use that more often than bb-edit nowadays, but bb-edit is still handy to take a quick look at the recipe and its include files when I have no need for a new bbappend. I do think it's worthwhile to still add the recipe-files command and use it for bb-edit, so am leaving this issue open for that.