Skip to content

Repository files navigation

self devbox

picture

desktop

os

  • kitty installer
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
  • kitty.desktop
[Desktop Entry]
Name=Kitty
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/opt/soft/kitty/bin/kitty
Icon=/opt/soft/kitty/share/icons/hicolor/256x256/apps/kitty.png
Type=Application
StartupNotify=false
StartupWMClass=Kitty
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Actions=new-empty-window;
Keywords=kitty;

Ranger

S Open a shell in the current directory; and type exit in terminal to go back to rangerl

git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons
echo "default_linemode devicons" >> $HOME/.config/ranger/rc.conf

https://github.com/gotbletu/shownotes/blob/master/ranger_file_locate_fzf.md

vim ~/.config/ranger/commands.py
# https://github.com/ranger/ranger/wiki/Integrating-File-Search-with-fzf
# Now, simply bind this function to a key, by adding this to your ~/.config/ranger/rc.conf: map <C-f> fzf_select
class fzf_select(Command):
"""
:fzf_select
Find a file using fzf.
With a prefix argument select only directories.
See: https://github.com/junegunn/fzf
"""
def execute(self):
import subprocess
if self.quantifier:
# match only directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -type d -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
else:
# match files and directories
command="find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
-o -print 2> /dev/null | sed 1d | cut -b3- | fzf +m"
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.decode('utf-8').rstrip('\n'))
if os.path.isdir(fzf_file):
self.fm.cd(fzf_file)
else:
self.fm.select_file(fzf_file)
# fzf_locate
class fzf_locate(Command):
"""
:fzf_locate
Find a file using fzf.
With a prefix argument select only directories.
See: https://github.com/junegunn/fzf
"""
def execute(self):
import subprocessvim ~/.config/ranger/rc.conf
if self.quantifier:
command="locate home media | fzf -e -i"
else:
command="locate home media | fzf -e -i"
fzf = self.fm.execute_command(command, stdout=subprocess.PIPE)
stdout, stderr = fzf.communicate()
if fzf.returncode == 0:
fzf_file = os.path.abspath(stdout.decode('utf-8').rstrip('\n'))
if os.path.isdir(fzf_file):
self.fm.cd(fzf_file)
else:
self.fm.select_file(fzf_file)
vim ~/.config/ranger/rc.conf
map <C-f> fzf_select
map <C-g> fzf_locate
git clone https://github.com/wting/autojump.git cd autojump
./install.py or ./uninstall.py
cd ~/.config/ranger/plugins
wget https://raw.githubusercontent.com/fdw/ranger-autojump/main/autojump.py
map cj console j%space

neovim

vim help

vim +"help lua | only"

writing

plugincommands or mapsdesc
dhruvasagar/vim-table-modeTableModeToggleinsert using |,second line two |
zhoupro/md-image-pastePasteImginsert img from host to md img
iamcco/markdown-preview.nvimMarkdownPreviewpriview current md file

coding

plugincommands or mapsdesc
godlygeek/tabularTabularize /== is sep symbol
zhoupro/leetcode.vimLeetCodeListleet ide
RishabhRD/nvim-cheat.shCheat
wellle/targets.vimttext object
tpope/vim-abolishm c s u - . t space
tpope/vim-surroundds cs yss
tpope/vim-commentarygcccomment
ThePrimeagen/harpoontt tafile mark
akinsho/toggleterm.nvimctrl_tterminal
kevinhwang91/nvim-ufozr zmfold
AndrewRadev/tagalong.vimchange tag
mattn/emmet-vimemmet
jiangmiao/auto-pairsbrackets, parens, quotes
zhoupro/vim-dadboddatabase
tpope/vim-repeat
rlue/vim-barbaric
linty-org/key-menu.nvim
trmckay/based.nvimc-bhex-dec view
AckslD/messages.nvimMessages message

fold buf view

plugindesccommands
romgrk/barbar.nvim
phaazon/hop.nvim
majutsushi/tagbar
nvim-lualine/lualine.nvim
folke/trouble.nvimTroubleerr nav
kyazdani42/nvim-tree.luaNvimTreeToggle:,-n copy:c,paste:p, clear find:F,file exploer
MattesGroeger/vim-bookmarks
junegunn/fzf
junegunn/fzf.vim

git

plugindesccommands
tpope/vim-fugitiveGblame, Git log -- file: to find any version filegit
airblade/vim-gitguttersign
sindrets/diffview.nvimDiffviewOpen HEAD~2 -- lua/diffviewview branch file

lsp and dap

plugindesccommands
williamboman/mason.nviminstaller
williamboman/mason-lspconfig.nviminstaller
neovim/nvim-lspconfig
hrsh7th/nvim-cmp
hrsh7th/cmp-nvim-lsp
hrsh7th/cmp-vsnip
hrsh7th/vim-vsnip
hrsh7th/cmp-path
hrsh7th/cmp-buffer
rafamadriz/friendly-snippets
ray-x/lsp_signature.nvim
jbyuki/one-small-step-for-vimkind
mfussenegger/nvim-dap
zhoupro/lsp_calltree
puremourning/vimspector
WhoIsSethDaniel/lualine-lsp-progress.nvim

libray

plugindesc
MunifTanjim/nui.nvimtree,input
nvim-lua/plenary.nvimcommon code
aklt/plantuml-syntaxplantuml
preservim/vim-markdownmarkdown
morhetz/gruvboxtheme
RishabhRD/popfix
voldikss/vim-floaterm

language

plugindesc
fatih/vim-go

tricks

create:a,delete:d,cut:x,rename:r,find:f,up:-,down:C-]

ubuntu & vagrant

docs/vagrant_ubuntu.md

go

docs/go.md

c

docs/c.md

fe

docs/fe.md

other

docker run -d -p 8080:8080 plantuml/plantuml-server:tomcat

About

own dev magic box

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages