vim-makery icon indicating copy to clipboard operation
vim-makery copied to clipboard

Doesn't run makeprg from project root

Open igemnace opened this issue 8 years ago • 2 comments

If Vim is opened from a project subdir, it reads .makery.json from project root properly, since it recurses up directories to search for it.

However, project root is sometimes needed for the makeprg to work (e.g. having Mtags run ctags -R src will certainly need to run in project root, for it to find src). Saving project root to a variable could certainly prove convenient.

Ideas for detecting project root:

  • For .makery.json: use the directory in which .makery.json is found.
  • For g:makery_config: without globbing, use the exact path as it appears in the config. With globbing, use the current path (parent directory of the current buffer)?
  • For Projectionist support: use the most precisely targeted root from projectionist#query() or projectionist#path()?

igemnace avatar Jan 10 '18 08:01 igemnace

Is this being worked on? I could lend a hand!

D4D3VD4V3 avatar Jan 04 '19 05:01 D4D3VD4V3

Sure, have at it! Thanks.

igemnace avatar Jan 11 '19 02:01 igemnace