Support buffers outside of Vim's CWD#5
Conversation
Adding missing space before ".", and while we're at it, may as well break the long line up.
|
Thanks @okcompute. I added a minor commit on top adjusting whitespace. Bear with me, but we should think about this a bit more before merging it. There are two competing models at play here, which at the very least suggests that we might want to control this behavior with an option, or employ some heuristic about when it should apply. The two models are:
Unfortunately, to complicate matters further, people might have a third "mixed" mode in mind such that they typically expect operations to apply to based on the current directory (model 2) but they also want to be able to edit files outside that directory from time to time and have the other model apply for those files (model 1). Unfortunately, I don't think there's any way to distinguish the intent of such people from another group that may prefer for that not to happen (eg. they might be working in "directory A" and open a file from "directory B" elsewhere, but they still want So:
Just thinking out loud there, so not sure if that makes sense. If we could make the "smart" thing work transparently and without quirks that would be my preference because then things would just work, but I fear we can't do that because of what I said above ("I don't think there's any way to distinguish the intent of such people from another group that may prefer for that not to happen")... So maybe a config option is the only way to be really sure about it, or even a variant command (eg. |
|
I understand your concern. As you can guess, I'm definitely in the model 1 camp. And I've seen a lot of people being on the model 2 camp (I sense you are in that camp otherwise your plugin would had match my model 1 expectation 😉 ). I'm ok to make this optional. But first, a couple of points to help our discussion!
All that said, I really don't mind to make model 1 optional. Just let me know and I'll update the PR this weekend! Thank you! |
|
Impossible to keep everybody happy all the time, so I think the best way forward is going to be an option. I suggest we actually do both of these:
Funnily, enough, I draw the opposite conclusion based on |
|
So I pushed a commit implementing the above proposal. |
|
Thank you @wincent. This is perfect :) |
This is a simplification of PR #2 and add support for buffers outside of Vim's CWD when
autochdiris not enabled. This PR resolves the last issue reported in #3 that was still present even after @wincent committed 5016306.Thank you @wincent!