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

Shift + mouse wheel to scroll horizontally. #659

Closed
Restricted18 opened this issue Feb 11, 2023 · 5 comments
Closed

Shift + mouse wheel to scroll horizontally. #659

Restricted18 opened this issue Feb 11, 2023 · 5 comments

Comments

@Restricted18
Copy link

How do I use Shift+mouse wheel to scroll horizontally?
I want to do this operation like in Cad or Browser.
(TE's split screen and tree folders are useful, but scrolling sideways is frequent.)
I set S8,S9 in add-on Mouse but could not find horizontal scrolling.

@ccfs
Copy link

ccfs commented Feb 12, 2023

add these 2 records:
20230212_095915
20230212_095928

They send ^{Left} (Ctrl+Left) / ^{Right} (Ctrl+Right) keys to a folder tree to scroll horizontally.

@ccfs
Copy link

ccfs commented Feb 12, 2023

The settings for file lists are a bit complicated. Shift+Left and Shift+Right keys are used to scroll horizontally in Details view, but are used for selection in other views. Therefore Shift+Wheel will be ignored for other views.

20230212_172258

FV.Focus();
if (FV.CurrentViewMode == FVM_DETAILS) {
	wsh.SendKeys("+{Left}");
}

20230212_172308

FV.Focus();
if (FV.CurrentViewMode == FVM_DETAILS) {
	wsh.SendKeys("+{Right}");
}

(updated for multiple panes)

@Restricted18
Copy link
Author

Thank you for your excellent response.
This is exactly the setup I was looking for.
My deepest thanks to ccfs.

The file lists setting seems to sometimes move up and down at higher wheel speeds. Also, I would like the amount of movement to the left and right to be about 4 times greater than that caused by these settings, so perhaps it would be better if they were implemented natively in TE.

Anyway, thank you very much.
I will close this issue.

@ccfs
Copy link

ccfs commented Feb 13, 2023

You can specify the number of times to repeat a keystroke, e.g. ^{Left 4} / ^{Right 4} / +{Left 4} / +{Right 4}.
I also get the file list moving up and down problem. This may be a problem of TE.

@ccfs
Copy link

ccfs commented Feb 13, 2023

I have finally solved the file list moving up and down problem. Here are the updated setup:

List left

FV.Focus();
setTimeout(async function () {
	if (FV.CurrentViewMode == FVM_DETAILS) {
		wsh.SendKeys("+{Left 4}");
	}
}, 99);

List right

FV.Focus();
setTimeout(async function () {
	if (FV.CurrentViewMode == FVM_DETAILS) {
		wsh.SendKeys("+{Right 4}");
	}
}, 99);

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

No branches or pull requests

2 participants