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

dag: add set_revtext_gather_paths #981

Merged
merged 1 commit into from
Sep 7, 2019
Merged

Conversation

xieofxie
Copy link
Contributor

In case project has many files.

I'm sorry that I'm working on Windows so I didn't run make check and make pot.

Copy link
Member

@davvid davvid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this enhancement, this is a great idea.

Small design consideration -- is this a setting that is really global, or should it be like some of the other preferences that can be both global and per-repo?

My intuition is telling me that this really feels like something that may be repo-specific (large vs. small repos) so it might make more sense to implement it similarly to the global/local settings that are present in the Preferences window. That way users can keep this feature enabled by default, and selectively disable it when working in large repos.

Let me know what you think.

cola/widgets/dag.py Outdated Show resolved Hide resolved
cola/widgets/completion.py Outdated Show resolved Hide resolved
cola/widgets/completion.py Outdated Show resolved Hide resolved
cola/widgets/dag.py Outdated Show resolved Hide resolved
@xieofxie
Copy link
Contributor Author

Thanks for the comments! I would like to redesign this.

Yes, this switch should be a local setting. But I didn't explore the code carefully before, so I simply follow the 'Lock Layout'..

Right, it is quite slow for projects with many files..

In case project has many files.

Signed-off-by: xhl <xieofxie@126.com>
@xieofxie
Copy link
Contributor Author

Now it totally depends on model.cfg.get(prefs.AUTOCOMPLETE_PATHS)

davvid added a commit to davvid/git-cola that referenced this pull request Sep 7, 2019
Related-to: git-cola#981
Signed-off-by: David Aguilar <davvid@gmail.com>
davvid added a commit to davvid/git-cola that referenced this pull request Sep 7, 2019
* xieofxie/gather_path:
  dag: add set_revtext_gather_paths

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid merged commit 5a011d9 into git-cola:master Sep 7, 2019
@xieofxie xieofxie deleted the gather_path branch November 6, 2019 04:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants