Navigate changed files?

Is there a way to open and navigate locally changed files? Aka open all files in git diff HEAD --name-only and then go from one hunk to the next across files, even?

9 comments
Comment actions Permalink

Hello,

You can switch the Project tool window scope to Changed Files:

2
Comment actions Permalink

A few problems: I see a collapse all but not expand all. Am I missing something? And, Ctrl+Alt+Shift+Down still only jumps within a file so I need the shortcut to "jump next file as shown on the left". Thanks for the help.

1
Comment actions Permalink

The first thing - unfortunately, it's not there yet. Please vote: https://youtrack.jetbrains.com/issue/IDEA-96225

> And, Ctrl+Alt+Shift+Down still only jumps within a file so I need the shortcut to "jump next file as shown on the left".
Could you please attach a screenshot demonstrating what you need?

0
Comment actions Permalink

I would also like a view that's populated by "git diff --name-only", but I'd like to be able to configure it to show not only the files that are dirty (which is what the option in the screen shot above does, i.e. git diff --name-only) but also the files that have changed (and have already been committed) in the current git branch relative to another branch, i.e.: git diff master --name-only.

2
Comment actions Permalink

BTW, since updating recently, from 2016.2 to 2016.3.2, my phpstorm no longer shows the "changed files" (or "default" for that matter) option in the screen shot above, even when there are dirty files in the project.

2
Comment actions Permalink

Changed Files Scope was an incredibly useful feature, especially for larger projects, and it was indeed gone since 2016.3.2. Was it a bug? Was it probably possible to re-enable it?

0
Comment actions Permalink

>Changed Files Scope was an incredibly useful feature, especially for larger projects, and it was indeed gone since 2016.3.2. Was it a bug? Was it probably possible to re-enable it?

It's a regression. Should be fixed in 2017.1 (you can try latest EAP build)

https://youtrack.jetbrains.com/issue/IDEA-162583

1
Comment actions Permalink

What I think is still missing is the ability to simply navigate to next changed file. Like the diff window, Next Change (Ctrl-Shift-Alt-Down) should ask if the user wants to go to the next changed file once they have navigated all the changes in the current file. Next changed file would be based on the order in the Version Control list.

When in the diff window the "Next Difference" (F7) command does exactly that. Unfortunately editing actions are very limited in the diff window vs the editor window.

0

Please sign in to leave a comment.