Instantly share code, notes, and snippets.

View asterisk.md

asterisk escape test:

hoge

*hoge*

*hoge*

*hoge*

View CapsLockCtrlEscape.ahk
#Include %A_LineFile%\..\vim.ahk
Return
#if
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
View .cvimrc
"Settings
"set nohud
"set autohidecursor
"set noinsertmappings
set smoothscroll
set autoupdategist
set noautofocus
"let scrollstep = 30
let fullpagescrollpercent = 90
View numlock.json
{
"title": "numlock",
"rules": [
{
"description": "numlock: X -> FX",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape"
View switch.json
{
"title": "Switch key",
"rules": [
{
"description": "F12 switch",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f12"
View sticky.json
{
"title": "sticky",
"rules": [
{
"description": "sticky shift - shift modifier",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "semicolon"
View details_summary_test.md
見出し部分。ここをクリック。**見出し部分のMarkdown太文字は不可**

ここが隠れてる部分。

中身には色々書ける。

View screen-utf8-osc.diff
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1506,8 +1506,24 @@
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)
+ *(curr->w_stringp)++ = c;
+ else if (c < 0x800)
View screen-utf8-osc.diff
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1506,8 +1506,24 @@
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)
+ *(curr->w_stringp)++ = c;
+ else if (c < 0x800)
View screen-utf8-nfd.patch
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -728,6 +728,10 @@
LPutChar(&curr->w_layer, &omc, ox, oy);
LGotoPos(&curr->w_layer, curr->w_x, curr->w_y);
}
+ if (curr->w_mbcs)
+ {
+ curr->w_rend.mbcs = curr->w_mbcs = 0;
+ }