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

Where is fast selection (by page) with Shift+PgUp Shift+PgDn? #918

Open
xintrea opened this issue Nov 20, 2017 · 7 comments
Open

Where is fast selection (by page) with Shift+PgUp Shift+PgDn? #918

xintrea opened this issue Nov 20, 2017 · 7 comments

Comments

@xintrea
Copy link

xintrea commented Nov 20, 2017

Description of the problem or steps to reproduce

I am can't see keyboard binding for fast selection (by page) with Shift+PgUp Shift+PgDn. How it configure?

Specifications

Version: 1.2.0
Commit hash: be81241
Compiled on May 27, 2017

OS: Debina Linux 9 Stable
Terminal: konsole

@xintrea xintrea changed the title Where is fast selection by Shift+PgUp Shift+PgDn? Where is fast selection (by page) with Shift+PgUp Shift+PgDn? Nov 22, 2017
@NeKJ
Copy link

NeKJ commented Jan 6, 2018

I concur...

@xintrea
Copy link
Author

xintrea commented Feb 12, 2018

Yes, please, create selection by hight of current page, and named it as SelectPageUp & SelectPageDown in bindings.json.

@xintrea
Copy link
Author

xintrea commented May 22, 2018

In 1.4.1-62 append action:

SelectPageUp
SelectPageDown

but this action don't work. I write settings to bindings.json:

    "ShiftPageUp": "SelectPageUp",
    "ShiftPageDown": "SelectPageDown"

But do nothing.

@Eucyon
Copy link

Eucyon commented Feb 28, 2019

I had the same problem. The problem on my maschine is, that micro doesn't create the shiftpageup and shiftpagedown event.
At last I solved it as follows:

  • Execute command (CTRL + e) "raw" and press the key (combination) you would like to bind an action to.
    In my case for shiftpageup and shiftpagedown I get the codes "\x1b[5;2~" and "\x1b[6;2~".

  • Add these codes to your ~/.config/micro/bindings.json file. Replace the "x" in the above codes by "u00":

{
	"CtrlLeft": "WordLeft",
	"CtrlRight": "WordRight",
	"CtrlG": "FindNext",
	"CtrlShiftLeft": "SelectWordLeft",
	"CtrlShiftRight": "SelectWordRight",
	"\u001b[5;2~": "SelectPageUp",
	"\u001b[6;2~": "SelectPageDown"
}

Further reading: Help about keybindings (CTRL + e, help keybindings, section "## Binding raw escape sequences"). Maybe this is helpful for someone.

@Kzer-Za
Copy link

Kzer-Za commented Mar 13, 2019

On my machine ShiftPageUp/ShiftPageDown do not work either. I checked in Tilda and xfce4-terminal. Assigning raw sequences would probably work, but I will have to change it each time I migrate my configuration.

@Kzer-Za
Copy link

Kzer-Za commented Mar 13, 2019

Correction: raw assignment doesn't work either.

@sergeevabc
Copy link

sergeevabc commented Nov 25, 2022

Windows 7 x64, micro 2.0.11.
Selection with Shift+PgUp/PgDn does not work out of the box.
Aggrrhh. Why? When?

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

5 participants