Skip to content

On mac ctrl-n should behave exactly like DownArrow#7316

Merged
joaomoreno merged 3 commits intomicrosoft:masterfrom
elemongw:master
Jul 6, 2016
Merged

On mac ctrl-n should behave exactly like DownArrow#7316
joaomoreno merged 3 commits intomicrosoft:masterfrom
elemongw:master

Conversation

@elemongw
Copy link
Copy Markdown
Contributor

@elemongw elemongw commented Jun 7, 2016

The same is true for ctrl-p and UpArrow. This fixes that

The same is true for ctrl-p and UpArrow. This fixes that
@mention-bot
Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @joaomoreno and @egamma to be potential reviewers

@msftclas
Copy link
Copy Markdown

msftclas commented Jun 7, 2016

Hi @elemongw, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@msftclas
Copy link
Copy Markdown

msftclas commented Jun 7, 2016

@elemongw, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, MSBOT;

@joaomoreno joaomoreno self-assigned this Jun 7, 2016
@elemongw
Copy link
Copy Markdown
Contributor Author

elemongw commented Jun 7, 2016

There is also src/vs/base/parts/quickopen/browser/quickOpenWidget.ts and it is pretty important too. However, I didn't change that as it would require a lot of if's for mac-specific code and I don't know if that is desired.

@elemongw
Copy link
Copy Markdown
Contributor Author

elemongw commented Jun 8, 2016

I would love feedback on this one as, if it's accepted, I would like to continue with similar changes that make vscode behave more like a cocoa app on mac.

@joaomoreno joaomoreno added this to the June 2016 milestone Jun 8, 2016
@elemongw elemongw closed this Jun 10, 2016
@joaomoreno
Copy link
Copy Markdown
Member

@elemongw Why did you close it?

@elemongw
Copy link
Copy Markdown
Contributor Author

I shouldn't be working when I'm this tired. I was using vscode 1.2 and the shortcuts I fixed here were working fine so I throught I messed up and proceeded to close the pull request. Seeing your message now I remembered that the reason they were working was because I had manually added them to my keybindings.json. Oh well, mistakes happen, I'm reopening the pull request

@elemongw elemongw reopened this Jun 10, 2016
@msftclas
Copy link
Copy Markdown

Hi @elemongw, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@joaomoreno
Copy link
Copy Markdown
Member

Looks awesome, thanks! 🎆

@ithinkihaveacat
Copy link
Copy Markdown

I think this causes a regression from 1.3.

In 1.3, with ctrl+n bound to workbench.action.quickOpenNavigateNext, then in Quick Open, holding down ctrl and then tapping n moved the selection down a line (as it does now). However, after releasing ctrl, the selected file was automatically opened, eliminating the need to press the return key.

It took a few goes to get used to this behavior, but eventually I found it preferable. It doesn't work anymore in 1.4. If this change was intentional, is there a way to get the old behavior back?

@joaomoreno
Copy link
Copy Markdown
Member

@bpasero Maybe I broken the behaviour when I accepted this PR. Can you review it and see what we can do about it?

@bpasero
Copy link
Copy Markdown
Member

bpasero commented Aug 8, 2016

Can we have a new issue assigned to August for this instead of lingering in some old closed PRs?

@bpasero
Copy link
Copy Markdown
Member

bpasero commented Aug 8, 2016

@ithinkihaveacat as a workaround you could configure this:

{ "key": "ctrl+n", "command": "workbench.action.openPreviousEditorFromHistory" },
{ "key": "ctrl+n", "command": "workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" }

That allows you to use Ctrl+N for quick open navigation but will disable it in all other trees.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants