Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Multiple Replacers #71

Open
michaeljpeters opened this issue Feb 23, 2023 · 0 comments
Open

Support Multiple Replacers #71

michaeljpeters opened this issue Feb 23, 2023 · 0 comments

Comments

@michaeljpeters
Copy link

What do you think about adding a new file that contains the following objects:

replacers.lua

default = {
    dir_to_session_filename = ..., -- <current dir_to_delimited_session_filename>
    session_filename_to_dir = ..., -- <current delimited_session_filename_to_dir>
}

git_repo = {
   -- ... The git repo implementation ...
}

Then, in configuration, you could do something like

... .setup({ replacer = require('session_manager.replacers').git_repo, ... })

This would make it easier to support new replacer implementations.

Originally posted by @michaeljpeters in #64 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant