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

Feature request: Ability to filter the status by a specified directory #337

Closed
hrj opened this Issue Aug 5, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@hrj

hrj commented Aug 5, 2014

In command line git if I specify a directory to the status command, the output is filtered for that directory. This is very useful when the working directory has many changes spread over several directories.

It would be great if git-cola could support something similar. The way I envision it is:

If user specifies a status command followed by a path on the command line, then the status view shows only changes relevant to that path. To make it clear to the user that the view is filtered, the status UI shows the filter in use. Extra creds if the filter can be toggled on / off through the UI.

davvid added a commit that referenced this issue Aug 18, 2014

status: add a filter toggle button
Hide the filter widget by default and add a toggle button to display it.

Related-to: #337

Signed-off-by: David Aguilar <davvid@gmail.com>

@davvid davvid closed this in 05417ac Aug 18, 2014

@hrj

This comment has been minimized.

Show comment
Hide comment
@hrj

hrj Aug 18, 2014

Thanks @mmargoliono @davvid for your nifty work!

Would it be possible to specify the filter path on the command line? For example,

git cola ./

Would automatically add a filter for the current directory. That would save some keystroke or mouse strokes.

hrj commented Aug 18, 2014

Thanks @mmargoliono @davvid for your nifty work!

Would it be possible to specify the filter path on the command line? For example,

git cola ./

Would automatically add a filter for the current directory. That would save some keystroke or mouse strokes.

davvid added a commit that referenced this issue Aug 18, 2014

git-cola: allow setting the filter text from the command line
We can now say:

	$ git cola --status-filter .
or
	$ git cola -s .

... and the status filter will be preset with the appropriate filter.

Related-to: #337
Suggested-by: @hrj
Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid

This comment has been minimized.

Show comment
Hide comment
@davvid

davvid Aug 18, 2014

Member

Thanks @hrj. I added a --status-filter (-s) command line option for setting the filter. I hope that helps.

Member

davvid commented Aug 18, 2014

Thanks @hrj. I added a --status-filter (-s) command line option for setting the filter. I hope that helps.

@hrj

This comment has been minimized.

Show comment
Hide comment
@hrj

hrj Aug 18, 2014

Fabulous! 👏

Thanks!

hrj commented Aug 18, 2014

Fabulous! 👏

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment