From 8ed6ee97b2e92706b138edb347cc3cabf788de8f Mon Sep 17 00:00:00 2001 From: pagedown Date: Tue, 30 Nov 2021 18:53:58 +0800 Subject: [PATCH] Docs: replace http url with https, use ripgrep project url and fix typo --- bypy/sources.json | 10 +++++----- docs/kittens/hyperlinked_grep.rst | 2 +- glfw/cocoa_init.m | 2 +- kitty/colors.h | 2 +- kitty/main.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bypy/sources.json b/bypy/sources.json index 5a94f16a0..5b175b3f8 100644 --- a/bypy/sources.json +++ b/bypy/sources.json @@ -75,7 +75,7 @@ "unix": { "filename": "libxkbcommon-1.0.3.tar.xz", "hash": "sha256:a2202f851e072b84e64a395212cbd976ee18a8ee602008b0bad02a13247dbc52", - "urls": ["http://xkbcommon.org/download/{filename}"] + "urls": ["https://xkbcommon.org/download/{filename}"] } }, @@ -115,7 +115,7 @@ "unix": { "filename": "readline-8.1.tar.gz", "hash": "sha256:f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02", - "urls": ["http://ftp.gnu.org/gnu/readline/{filename}"] + "urls": ["https://ftp.gnu.org/gnu/readline/{filename}"] } }, @@ -180,7 +180,7 @@ "unix": { "filename": "libpng-1.6.37.tar.xz", "hash": "sha256:505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca", - "urls": ["http://downloads.sourceforge.net/sourceforge/libpng/{filename}"] + "urls": ["https://downloads.sourceforge.net/sourceforge/libpng/{filename}"] } }, @@ -199,7 +199,7 @@ "unix": { "filename": "graphite2-1.3.14.tgz", "hash": "sha256:f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d", - "urls": ["http://downloads.sourceforge.net/silgraphite/{filename}"] + "urls": ["https://downloads.sourceforge.net/silgraphite/{filename}"] } }, @@ -259,7 +259,7 @@ "unix": { "filename": "fontconfig-2.13.1.tar.bz2", "hash": "sha256:f655dd2a986d7aa97e052261b36aa67b0a64989496361eca8d604e6414006741", - "urls": ["http://www.fontconfig.org/release/{filename}"] + "urls": ["https://www.fontconfig.org/release/{filename}"] } }, diff --git a/docs/kittens/hyperlinked_grep.rst b/docs/kittens/hyperlinked_grep.rst index 3ea78e670..cb60e4893 100644 --- a/docs/kittens/hyperlinked_grep.rst +++ b/docs/kittens/hyperlinked_grep.rst @@ -3,7 +3,7 @@ Hyperlinked grep This kitten allows you to search your files using `ripgrep -`_ and open the results +`_ and open the results directly in your favorite editor in the terminal, at the line containing the search result, simply by clicking on the result you want. diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 72fd24ec5..519c228a9 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -574,7 +574,7 @@ int _glfwPlatformInit(void) { NSEventModifierFlags modifierFlags = [event modifierFlags] & (NSEventModifierFlagShift | NSEventModifierFlagOption | NSEventModifierFlagCommand | NSEventModifierFlagControl); if (modifierFlags & NSEventModifierFlagCommand) { - // From http://cocoadev.com/index.pl?GameKeyboardHandlingAlmost + // From https://cocoadev.github.io/GameKeyboardHandlingAlmost/ // This works around an AppKit bug, where key up events while holding // down the command key don't get sent to the key window. [[NSApp keyWindow] sendEvent:event]; diff --git a/kitty/colors.h b/kitty/colors.h index 94c83fc0e..62711fa06 100644 --- a/kitty/colors.h +++ b/kitty/colors.h @@ -64,7 +64,7 @@ extern PyTypeObject Color_Type; static inline double rgb_luminance(ARGB32 c) { - // From ITU BT 601 http://www.itu.int/rec/R-REC-BT.601 + // From ITU BT 601 https://www.itu.int/rec/R-REC-BT.601 return 0.299 * c.red + 0.587 * c.green + 0.114 * c.blue; } diff --git a/kitty/main.py b/kitty/main.py index 89b45a142..1b20e22de 100644 --- a/kitty/main.py +++ b/kitty/main.py @@ -114,7 +114,7 @@ def get_macos_shortcut_for( # for maximum robustness we should use opts.alias_map to resolve # aliases however this requires parsing everything on startup which could # be potentially slow. Lets just hope the user doesnt alias these - # fucntions. + # functions. ans = None candidates = [] qkey = tuple(defn.split())