Skip to content

Instantly share code, notes, and snippets.

@enisozgen
enisozgen / vimium-additional-keys.conf
Last active December 28, 2020 09:27
Additional key definitions for vimium
# About vimium https://github.com/philc/vimium
# Tab move next or previous right hand
map J nextTab
map K previousTab
# Tab move next or previous for left hand
map e nextTab
map r previousTab
@enisozgen
enisozgen / smart_navi.zsh
Created April 3, 2021 14:37
Some additional features for navi
#!/usr/bin/env zsh
# Some additional features on top of navi command
# https://github.com/denisidoro/navi
# How it works
# https://i.imgur.com/CM0Io4j.gif
# works with zsh
#!/usr/bin/env zsh
# _ _
# __ _| | _____ _ _ ___ _______| |__
# \ \/ / |/ / _ \ | | / __| |_ / __| '_ \
# > <| < __/ |_| \__ \_ / /\__ \ | | |
# /_/\_\_|\_\___|\__, |___(_)___|___/_| |_|
# |___/
last_class="none"
current_map=default
@enisozgen
enisozgen / regulex-query.sh
Created September 10, 2021 08:27
visualize your regular expression easily on your browser
#!/bin/sh
# https://unix.stackexchange.com/a/152025/457201
# 1 . Usage copy the regular expression which is hard to understand
# 2. Run `sh regulex.query.sh`
mk_regulex_query() {
url_encode() {
# http://stackoverflow.com/a/298258/3541063
@enisozgen
enisozgen / global-emacs-turkish-correct-buffer.sh
Last active December 26, 2023 09:56
ingilizce klavye ile yazılmış türkçe kelimeleri doğru yazmaya yarayan script
#!/bin/bash
# 1. Run `bash global-emacs-turkish-correct-buffer.sh` from rofi or set some keybinding for this command
# More info
# https://github.com/emres/turkish-mode
# http://denizyuret.blogspot.com/2006/11/emacs-turkish-mode.html
function global-emacs-turkish-correct-buffer
{
@enisozgen
enisozgen / search-turkish.el
Last active December 19, 2024 13:20
search turkish by using english characters in emacs
(defvar turkish-char-map
'(("ı" . "i") ("ğ" . "g") ("ü" . "u") ("ş" . "s") ("ö" . "o") ("ç" . "c")
("İ" . "I") ("Ğ" . "G") ("Ü" . "U") ("Ş" . "S") ("Ö" . "O") ("Ç" . "C"))
"A mapping of Turkish characters to their English equivalents.")
(defun denormalize-turkish-text (text)
"Generate alternative searches by replacing English characters with their Turkish equivalents."
(let ((case-fold-search nil)
(denormalized-queries (list text)))
(dolist (pair turkish-char-map)