pauldmccarthy / fsleyes

This is a mirror. Feel free to use the issue tracker. PRs welcome.
https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/
Other
22 stars 11 forks source link

Add ctrl+shift+f hotkey: toggle all overlays > 1 #118

Closed CGSchwarzMayo closed 1 year ago

CGSchwarzMayo commented 1 year ago

In our homebrew-modified fslview, we came to enjoy a hotkey that simply toggles visibility of all overlays that weren't the bottom-most on the list. Often-times we open a T1 with a bunch of different masks overlaid, and we want to look at one mask at a time. The option to toggle all but the first image sets that up quickly from the starting point of all-images-visible. Another great use case is when you have 1 base image and 2 masks loaded. If one mask is on and the other is off, and you want to toggle, this hotkey flips between the two masks.

I chose ctrl+shift+f because ctrl+f is already the hotkey for toggling visibility of the current overlay, and ctrl+alt+f is a system-level hotkey in our x2go environment, so that would not be of much use to our group.

Thanks for your consideration!

pauldmccarthy commented 1 year ago

Hi @CGSchwarzMayo, looks great - thanks!

pauldmccarthy commented 1 year ago

Hmm, I seem to have confused GitHub here - FSLeyes development takes place on our GitLab server at https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/, but GitHub PRs are normally automatically marked as merged when the relevant commits are pushed to the default branch. It's probably because I finally got around to renaming master to main that has messed things up.

In any case, I've just merged this PR, so this will be in the next release. Thanks again!