magit / transient

Transient commands
https://magit.vc/manual/transient
GNU General Public License v3.0
711 stars 66 forks source link

Support various types of local values #189

Open tarsius opened 2 years ago

tarsius commented 2 years ago

Such as:

Silex commented 2 years ago

Hello,

FYI projectile uses .dir-locals.el, so something that works with it sounds logical.

Maybe I'm stupid but isn't this as simple as putting the content of transient-values into that file? So when it loads it sets transient-values and we are good to go?

The only drawback is that you can only transient-save one global set of values and if you want to modify this project values you have to edit .dir-lcoals.el manually.

johnhamelink commented 1 year ago

I was able to set the docker-compose directory with a .dir-locals file by:

My resultant .dir-locals looks like this:

((nil . ((transient-values
          . ((docker-compose "--project-directory ~/code/work/repo/"))))))

I hope that's helpful!