commit 7a3ffa7227a7f3f9d631af84c12a2c8da0ec8894
parent e97335a008ca8f7bedac17f2404961a8df7b7465
Author: Abdul Rahim <abdul.rahim@myyahoo.com>
Date: Tue, 1 Oct 2024 03:36:17 +0530
update
Diffstat:
10 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/cJSON.o b/cJSON.o
Binary files differ.
diff --git a/get_lang.o b/get_lang.o
Binary files differ.
diff --git a/reallocarray.o b/reallocarray.o
Binary files differ.
diff --git a/stagit b/stagit
Binary files differ.
diff --git a/stagit-index b/stagit-index
Binary files differ.
diff --git a/stagit-index.o b/stagit-index.o
Binary files differ.
diff --git a/stagit.c b/stagit.c
@@ -543,11 +543,33 @@ writeheader(FILE *fp, const char *title)
fputs("<script> hljs.highlightAll() ;</script>\n", fp);
// for fixing the nextline issues
- fputs("<style>pre code.hljs {display: inline;padding: 0;} code.hljs {padding: 0;}"
+ fputs("<style>pre code.hljs {display: inline;padding: 0; font-family: \"Source Code Pro\", monospace;"
+ "font-optical-sizing: auto;"
+ "font-weight: 500;"
+ "font-style: normal; } code.hljs {padding: 0;}"
" .hljs {background: initial;} .hljs-comment{color: rgb(96, 96, 96);}</style>", fp);
// Doesnt make sense to change these properties, insted, change
// your style.css to match the theme
// .hljs::selection, .hljs ::selection {background-color: initial;}
+
+ /*
+ * add vim keybindings
+ */
+ fputs("<script src=\"https://cdnjs.cloudflare.com/ajax"
+ "/libs/mousetrap/1.6.3/mousetrap.min.js\"></script>\n", fp);
+
+
+ fputs("<script>\n"
+ "Mousetrap.bind('j', function() {\n"
+ "window.scrollBy(0, 100);\n"
+ "return false;\n"
+ "});\n"
+ "Mousetrap.bind('k', function() {\n"
+ "window.scrollBy(0, -100);\n"
+ "return false;\n"
+ "});\n"
+ "</script>\n", fp);
+
fputs("</head>\n<body>\n<table><tr><td>", fp);
fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
diff --git a/stagit.o b/stagit.o
Binary files differ.
diff --git a/strlcat.o b/strlcat.o
Binary files differ.
diff --git a/strlcpy.o b/strlcpy.o
Binary files differ.