question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contribution Request: Another small plugin for core (details inside)

See original GitHub issue

Hello again, @anishathalye 👋

I recently finished up a small plugin locally for my own use and it’s pretty darn useful for a particular use-case that I think might also be useful for a large portion of other users.

This issue is just to gauge your interest in adding it into core (after a thorough code review, of course).

The gist

The plugin is called merge, and it is used like this (subject to changes):

- merge:
    ~/dest: source

As you can see, it works very much like link, however, the difference is that instead of linking dest to source, it “merges” the contents of source into dest (with symlinks dest -> src).

The salient use-case for this is with dotfiles belonging in the $XDG_CONFIG_HOME or ~/.config directory.

Instead of having to do this:

- link:
    ~/.config/foo: config/foo
    ~/.config/bar: config/bar
    ~/.config/baz: config/baz

You instead only have to do this:

- merge:
    ~/.config: config

Ah, much better 😄

Anyway, I just finished a decent working implementation last night for my own personal use that so far works nicely for my needs.

Let me know if you might be interested in a PR for this. If not, no hard feelings. 👍

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
dsiffordcommented, Apr 9, 2018

Finally got around to pushing the plugin to github…

Here’s a link if you’re interested in checking it out… I run it several times in my configuration and it’s working pretty well for me.

0reactions
dsiffordcommented, Apr 17, 2018

Looks like you guys went with globbing. Closing this as irrelevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ActBlue Contributions - Plugins - WordPress.org
Easily embed your ActBlue contribution forms on any WordPress page. ... This plugin was designed and built in collaboration with Upstatement.
Read more >
8 Best WordPress Donation Plugins for 2022 (Fundraising + ...
To help you find the best WordPress donation plugin, we compare the 8 top options for full fundraising or simple donation buttons.
Read more >
Top 4 WordPress Donation Plugins for NPO's - Wisevu
We have written a detailed article that covers the top 4 WordPress donation plugins for NPOs. Take a look at the article if...
Read more >
Contributing — imageio 2.22.4 documentation
Here you can find documentation on how to write your own plugin to allow ImageIO to access a new backend. v3 plugin docs....
Read more >
Offline Donations - Payment Gateways - GiveWP
They send you their Offline Donation (via mail or in person); You manually switch the status of their transaction from “Pending” to “Complete”;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found