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

Add G and F key bindings to IINA Default config (closes #4824) #4852

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

svobs
Copy link
Contributor

@svobs svobs commented Mar 18, 2024


Description:
Adds Shift+G and Shift+F key bindings to iina-default-input.conf to control subtitle scale, consistent with the mpv defaults.

Note that I used G and F instead of Shift+g and Shift+f, respectively, so that it was not a straight copy+paste from the mpv Default config. I did this so that they are in the "normalized mpv" form we agreed some time back to facilitate comparison between key bindings. The mpv project isn't consistent with which form it uses from line to line in its default config file, which seems suboptimal to me.

@low-batt low-batt linked an issue Mar 18, 2024 that may be closed by this pull request
@low-batt
Copy link
Contributor

A side issue…

Looking at the IINA Default bindings with Display raw values enabled I see that the IINA bindings avoid using Shift for letter keys and instead use a capital letter.

But this is not entirely true. If this is the convention shouldn't for example Shift+Meta+v be Meta+V?

Copy link
Contributor

@low-batt low-batt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled PR, built IINA, tested. Looks good to me.

@low-batt low-batt merged commit 3f02bf0 into iina:develop Mar 18, 2024
1 check passed
@low-batt
Copy link
Contributor

Great to get this completed. I've been trying to make sure all the issues planned for the bug fix release are ready for when the other developers get a chance to review, merge and prepare a release. Hopefully that will happen soon so we can move on to the release that is focused on adding features.

By the way, GitHub follows the 50/72 commit message rule. An explanation of this rule can be found in this comment on a GitHub Desktop issue requesting an enhancement to help developers adhere to the rule. That comment also contains some links including How to Write a Git Commit Message which goes into more detail.

The 50 character limit is hard to adhere to. You will find commits from me that exceed that limit, but I always adhere to the 72 character limit.

@svobs
Copy link
Contributor Author

svobs commented Mar 19, 2024

A side issue…

Looking at the IINA Default bindings with Display raw values enabled I see that the IINA bindings avoid using Shift for letter keys and instead use a capital letter.

But this is not entirely true. If this is the convention shouldn't for example Shift+Meta+v be Meta+V?

It should. But I thought it best not to push for too many changes. The least I can do is use the normalized form for any lines that already need to be changed.

By the way, GitHub follows the 50/72 commit message rule. An explanation of this rule can be found in desktop/desktop#2055 (comment) on a GitHub Desktop issue requesting an enhancement to help developers adhere to the rule. That comment also contains some links including How to Write a Git Commit Message which goes into more detail.

The 50 character limit is hard to adhere to. You will find commits from me that exceed that limit, but I always adhere to the 72 character limit.

Eh, yeah ;) It is hard. When the commit has a complex change it feels like working on a crossword puzzle. Stealing precious cognitive load from more important tasks like coming up with function names. It would be great if there was something like semantic commit messages but with a larger vocabulary. But yeah I will try to tidy up my messages.

@low-batt
Copy link
Contributor

It should. But I thought it best not to push for too many changes. The least I can do is use the normalized form for any lines that already need to be changed.

I thought it might be something like that. Makes sense. I just wanted to understand the reasoning.

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

Successfully merging this pull request may close these issues.

Add key bindings for changing subtitle font size
2 participants