diff --git a/.config/coc/ultisnips/all.snippets b/.config/coc/ultisnips/all.snippets new file mode 100644 index 0000000..95531c3 --- /dev/null +++ b/.config/coc/ultisnips/all.snippets @@ -0,0 +1,38 @@ +# A valid snippet should starts with: +# +# snippet trigger_word [ "description" [ options ] ] +# +# and end with: +# +# endsnippet +# +# Snippet options: +# +# b - Beginning of line. +# i - In-word expansion. +# w - Word boundary. +# r - Regular expression +# e - Custom context snippet +# A - Snippet will be triggered automatically, when condition matches. +# +# Basic example: +# +# snippet emitter "emitter properties" b +# private readonly ${1} = new Emitter<$2>() +# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event +# endsnippet +# +# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt +snippet cmt "/* | */" +${1}/* ${0} */ +endsnippet + +snippet f "inline function" +${1}function${2}(${3}){${0}} +endsnippet + +snippet fun "function" +${1}function ${2:name}(${3:params}){ + ${0:/* code */} +} +endsnippet diff --git a/.config/coc/ultisnips/gitcommit.snippets b/.config/coc/ultisnips/gitcommit.snippets new file mode 100644 index 0000000..3880850 --- /dev/null +++ b/.config/coc/ultisnips/gitcommit.snippets @@ -0,0 +1,20 @@ +# an idea from https://github.com/robinpokorny/git3moji +# [![git3moji–v1.0](https://img.shields.io/badge/git3moji–v1.0-%E2%9A%A1%EF%B8%8F%F0%9F%90%9B%F0%9F%93%BA%F0%9F%91%AE%F0%9F%94%A4-fffad8.svg?style=flat-square)](https://robinpokorny.github.io/git3moji/) +snippet zap--⚡️–features-primary-concerns-3 "" +:zap: +endsnippet +snippet bug--🐛-fixes-3 "" +:bug: +endsnippet +snippet zapcop--⚡️👮-refactoring-3 "" +:zap::cop: +endsnippet +snippet tv--📺–ci-tooling-configuration-3 "" +:tv: +endsnippet +snippet cop--👮–tests-linting-comments-3 "" +:cop: +endsnippet +snippet abc--🔤-documentation-3 "" +:abc: +endsnippet diff --git a/.config/coc/ultisnips/gitcommit.snippets-bak b/.config/coc/ultisnips/gitcommit.snippets-bak new file mode 100644 index 0000000..0454d31 --- /dev/null +++ b/.config/coc/ultisnips/gitcommit.snippets-bak @@ -0,0 +1,204 @@ +snippet alembic--experimenting-new-things "" b +:alembic: +endsnippet +snippet alien--updating-code-due-to-external-api-changes "" b +:alien: +endsnippet +snippet ambulance--critical-hotfix "" b +:ambulance: +endsnippet +snippet apple--fixing-something-on-macos "" b +:apple: +endsnippet +snippet arrow_down--downgrading-dependencies "" b +:arrow_down: +endsnippet +snippet arrow_up--upgrading-dependencies "" b +:arrow_up: +endsnippet +snippet art--improving-structure--format-of-the-code "" b +:art: +endsnippet +snippet beers--writing-code-drunkenly "" b +:beers: +endsnippet +snippet bento--adding-or-updating-assets "" b +:bento: +endsnippet +snippet bookmark--releasing--version-tags "" b +:bookmark: +endsnippet +snippet boom--introducing-breaking-changes "" b +:boom: +endsnippet +snippet bug--fixing-a-bug "" b +:bug: +endsnippet +snippet building_construction--making-architectural-changes "" b +:building_construction: +endsnippet +snippet bulb--documenting-source-code "" b +:bulb: +endsnippet +snippet busts_in_silhouette--add-contributor(s) "" b +:busts_in_silhouette: +endsnippet +snippet camera_flash--adding-or-updating-snapshots "" b +:camera_flash: +endsnippet +snippet card_file_box--performing-database-related-changes "" b +:card_file_box: +endsnippet +snippet chart_with_upwards_trend--adding-analytics-or-tracking-code "" b +:chart_with_upwards_trend: +endsnippet +snippet checkered_flag--fixing-something-on-windows "" b +:checkered_flag: +endsnippet +snippet children_crossing--improving-user-experience--usability "" b +:children_crossing: +endsnippet +snippet clown_face--mocking-things "" b +:clown_face: +endsnippet +snippet construction--work-in-progress "" b +:construction: +endsnippet +snippet construction_worker--adding-ci-build-system "" b +:construction_worker: +endsnippet +snippet dizzy--adding-or-updating-animations-and-transitions "" b +:dizzy: +endsnippet +snippet egg--adding-an-easter-egg "" b +:egg: +endsnippet +snippet fire--removing-code-or-files "" b +:fire: +endsnippet +snippet globe_with_meridians--internationalization-and-localization "" b +:globe_with_meridians: +endsnippet +snippet goal_net--catching-errors"-b +:goal_net: +endsnippet +snippet green_apple--fixing-something-on-ios "" b +:green_apple: +endsnippet +snippet green_heart--fixing-ci-build "" b +:green_heart: +endsnippet +snippet heavy_minus_sign--removing-a-dependency "" b +:heavy_minus_sign: +endsnippet +snippet heavy_plus_sign--adding-a-dependency "" b +:heavy_plus_sign: +endsnippet +snippet iphone--working-on-responsive-design "" b +:iphone: +endsnippet +snippet label--adding-or-updating-types--flow--typescript "" b +:label: +endsnippet +snippet lipstick--updating-the-ui-and-style-files "" b +:lipstick: +endsnippet +snippet lock--fixing-security-issues "" b +:lock: +endsnippet +snippet loud_sound--adding-logs "" b +:loud_sound: +endsnippet +snippet mag--improving-seo "" b +:mag: +endsnippet +snippet memo--add-or-update-documentation "" b +:memo: +endsnippet +snippet mute--removing-logs "" b +:mute: +endsnippet +snippet ok_hand--updating-code-due-to-code-review-changes "" b +:ok_hand: +endsnippet +snippet package--updating-compiled-files-or-packages "" b +:package: +endsnippet +snippet page_facing_up--adding-or-updating-license "" b +:page_facing_up: +endsnippet +snippet pencil--writing-docs "" b +:pencil: +endsnippet +snippet pencil2--fixing-typos "" b +:pencil2: +endsnippet +snippet penguin--fixing-something-on-linux "" b +:penguin: +endsnippet +snippet poop--writing-bad-code-that-needs-to-be-improved "" b +:poop: +endsnippet +snippet pushpin--pinning-dependencies-to-specific-versions "" b +:pushpin: +endsnippet +snippet recycle--refactoring-code "" b +:recycle: +endsnippet +snippet rewind--reverting-changes "" b +:rewind: +endsnippet +snippet robot--fixing-something-on-android "" b +:robot: +endsnippet +snippet rocket--deploying-stuff "" b +:rocket: +endsnippet +snippet rotating_light--removing-linter-warnings "" b +:rotating_light: +endsnippet +snippet see_no_evil--adding-or-updating-a- "" b +:see_no_evil: +endsnippet +snippet seedling--adding-or-updating-seed-files"-b +:seedling: +endsnippet +snippet sparkles--introducing-new-features "" b +:sparkles: +endsnippet +snippet speech_balloon--updating-text-and-literals "" b +:speech_balloon: +endsnippet +snippet tada--initial-commit "" b +:tada: +endsnippet +snippet triangular_flag_on_post--adding--updating--or-removing-feature-flags "" b +:triangular_flag_on_post: +endsnippet +snippet truck--moving-or-renaming-files "" b +:truck: +endsnippet +snippet twisted_rightwards_arrows--merging-branches "" b +:twisted_rightwards_arrows: +endsnippet +snippet wastebasket--deprecating-code-that-needs-to-be-cleaned-up "" b +:wastebasket: +endsnippet +snippet whale--work-about-docker "" b +:whale: +endsnippet +snippet wheel_of_dharma--work-about-kubernetes "" b +:wheel_of_dharma: +endsnippet +snippet wheelchair--improving-accessibility "" b +:wheelchair: +endsnippet +snippet white_check_mark--updating-tests "" b +:white_check_mark: +endsnippet +snippet wrench--changing-configuration-files "" b +:wrench: +endsnippet +snippet zap--improving-performance "" b +:zap: +endsnippet diff --git a/.config/coc/ultisnips/html.snippets b/.config/coc/ultisnips/html.snippets new file mode 100644 index 0000000..5377d60 --- /dev/null +++ b/.config/coc/ultisnips/html.snippets @@ -0,0 +1,60 @@ +# A valid snippet should starts with: +# +# snippet trigger_word [ "description" [ options ] ] +# +# and end with: +# +# endsnippet +# +# Snippet options: +# +# b - Beginning of line. +# i - In-word expansion. +# w - Word boundary. +# r - Regular expression +# e - Custom context snippet +# A - Snippet will be triggered automatically, when condition matches. +# +# Basic example: +# +# snippet emitter "emitter properties" b +# private readonly ${1} = new Emitter<$2>() +# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event +# endsnippet +# +# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt +snippet sceleton "HTML5" b + + + + + + + + + + + + + + + + + + + + + +endsnippet + +snippet cmt "comment" + +endsnippet + +snippet viewport_cordova "viewport used in cordova apps" + +endsnippet +snippet csp_cordova "CSP used in cordova" + + +endsnippet diff --git a/.config/coc/ultisnips/javascript.snippets b/.config/coc/ultisnips/javascript.snippets new file mode 100644 index 0000000..9d4574e --- /dev/null +++ b/.config/coc/ultisnips/javascript.snippets @@ -0,0 +1,87 @@ +snippet sceleton_node "nodejs" b +#!/usr/bin/env node +/* jshint esversion: 8,-W097, -W040, node: true, expr: true, undef: true */ +${0} +endsnippet +snippet sceleton_cli "nodejsscript" b +#!/usr/bin/env nodejsscript +/* jshint esversion: 11,-W097, -W040, module: true, node: true, expr: true, undef: true *//* global echo, $, pipe, s, fetch, cyclicLoop */ +${0} +endsnippet +snippet sceleton_zx "zx" b +#!/usr/bin/env zx +/* jshint esversion: 8,-W097, -W040, node: true, expr: true, undef: true */ +${0} +endsnippet +snippet jshint "JSHint header" b +/* jshint esversion: 6,-W097, -W040, browser: true, expr: true, undef: true */ +/* global ${0} */ +endsnippet +snippet global "JSHint global" +/* global ${0} */ +endsnippet +snippet global_ns "JSHint global" +/* ${1} *//* global ${0} */ +endsnippet +snippet devel "JSHint devel" +${1}/* jshint devel: true *///gulp.keep.line${0} +endsnippet + +snippet log "console.log" +${1}console.log('${0}'); +endsnippet +snippet stor "localStorage" +${1}localStorage.${2:g}etItem("${0}"); +endsnippet + +snippet import "import with backward order" +import ${2:values} from "${1:specifier}";$0 +endsnippet +snippet promise "return? new Promise" +${1:return }new Promise(function(resolve, reject){ + ${0:/* async code */} +}); +endsnippet +snippet for "classical loop" +for(${1:let} ${2:i}= 0, ${2}_length= ${3:ITERABLE}.length; ${2}<${2}_length; ${2}++){ + ${0:/* statement */} +} +endsnippet +snippet foreach "PHP-like name" b +for(${2:const} ${3:element} of ${1:iterable}){ + ${0:/* statement */} +} +endsnippet +snippet switch "classical switch" +switch (${1}){ + case ${2}: + ${0} + break; + default: +} +endsnippet +snippet desctr "object destructure" +${1:const} { $0 }= ${2:def}; +endsnippet +snippet ready "document ready" +${1}document.addEventListener('DOMContentLoaded', ${0}, false) +endsnippet +snippet readyEvent "vanilla JS content ready event name" +${1}DOMContentLoaded${0} +endsnippet + +snippet selid +${1}document.getElementById('${0}') +endsnippet +snippet seltag +${1}getElementsByTagName('${0}') +endsnippet +snippet selclass +${1}getElementsByClassName('${0}') +endsnippet +snippet sel +${1}querySelector('${0}') +endsnippet +snippet selall +${1}querySelectorAll('${0}') +endsnippet diff --git a/.config/coc/ultisnips/json.snippets b/.config/coc/ultisnips/json.snippets new file mode 100644 index 0000000..da6ea7c --- /dev/null +++ b/.config/coc/ultisnips/json.snippets @@ -0,0 +1,14 @@ +snippet jshint "JSHint config for package.json" b +"jshintConfig": { + "esversion": 6, + "browser": "true", + "undef": "true", + "latedef": "true", + "maxparams": 4, + "maxdepth": 3, + "maxcomplexity": 17, + "globals": { + "gulp_place": false + } +} +endsnippet diff --git a/.config/coc/ultisnips/markdown.snippets b/.config/coc/ultisnips/markdown.snippets new file mode 100644 index 0000000..caf3f05 --- /dev/null +++ b/.config/coc/ultisnips/markdown.snippets @@ -0,0 +1,25 @@ +# A valid snippet should starts with: +# +# snippet trigger_word [ "description" [ options ] ] +# +# and end with: +# +# endsnippet +# +# Snippet options: +# +# b - Beginning of line. +# i - In-word expansion. +# w - Word boundary. +# r - Regular expression +# e - Custom context snippet +# A - Snippet will be triggered automatically, when condition matches. +# +# Basic example: +# +# snippet emitter "emitter properties" b +# private readonly ${1} = new Emitter<$2>() +# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event +# endsnippet +# +# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt diff --git a/.config/coc/ultisnips/php.snippets b/.config/coc/ultisnips/php.snippets new file mode 100644 index 0000000..a852766 --- /dev/null +++ b/.config/coc/ultisnips/php.snippets @@ -0,0 +1 @@ +extends php, html diff --git a/.config/coc/ultisnips/sh.snippets b/.config/coc/ultisnips/sh.snippets new file mode 100644 index 0000000..5fb1c5e --- /dev/null +++ b/.config/coc/ultisnips/sh.snippets @@ -0,0 +1,9 @@ +snippet sceleton "bash" b +#!/usr/bin/env ${1:bash} +set -eou pipefail +${0} +endsnippet +snippet info "script name and version" b +this="${0##*/}" +version="`date +%Y-%m-%d`" +endsnippet diff --git a/.config/coc/ultisnips/vue.snippets b/.config/coc/ultisnips/vue.snippets new file mode 100644 index 0000000..21f3819 --- /dev/null +++ b/.config/coc/ultisnips/vue.snippets @@ -0,0 +1 @@ +extends javascript, html diff --git a/.vim/README.md b/.vim/README.md new file mode 100644 index 0000000..4b4fdf5 --- /dev/null +++ b/.vim/README.md @@ -0,0 +1,17 @@ +# Vim +My cross-platform config file. Now primarly **Ubuntu**, in the past also Windows (I don't use them so much now → not tested!). + +To navigate my secondary editor use [../vscode](../vscode). + +## Related files +- [../.vimrc](../.vimrc) +- [../.config/coc/ultisnips](../.config/coc/ultisnips) +- [./\*](./) + +## Plugins +See [./§vim_plugins_export-v0.json](./§vim_plugins_export-v0.json). Also call `:helptags ~/.vim/bundle/`. + + +## To consider +- [yaegassy/coc-html-css-support: HTML id and class attribute "completion" for coc.nvim.](https://github.com/yaegassy/coc-html-css-support): `alpine.js`, `petite-vue` +- [vimwiki/vimwiki: Personal Wiki for Vim](https://github.com/vimwiki/vimwiki) diff --git a/.vim/§vim_plugins_export-v0.json b/.vim/§vim_plugins_export-v0.json new file mode 100644 index 0000000..caa0342 --- /dev/null +++ b/.vim/§vim_plugins_export-v0.json @@ -0,0 +1 @@ +{"bundle":["https://github.com/tpope/vim-repeat.git","https://github.com/machakann/vim-highlightedyank.git","https://github.com/tpope/vim-surround.git","https://github.com/tpope/vim-liquid.git","https://github.com/junegunn/rainbow_parentheses.vim.git","https://github.com/jaandrle/vim-mini_intro.git","git@github.com:jaandrle/vim-mini_sessions.git","https://github.com/jaandrle/vim-jaandrle_utils.git","https://github.com/jaandrle/vim-scommands.git","https://github.com/jaandrle/vim-mini_enhancement.git","https://github.com/ctrlpvim/ctrlp.vim.git","https://github.com/jaandrle/vim-user_tips.git","https://github.com/rantasub/vim-bash-completion.git","https://github.com/rhysd/git-messenger.vim.git","https://github.com/Yilin-Yang/vim-markbar.git","https://github.com/wellle/context.vim.git","https://github.com/tpope/vim-speeddating.git","https://github.com/jonsmithers/vim-html-template-literals.git","git@github.com:leafOfTree/vim-vue-plugin","git@github.com:madox2/vim-ai","git@github.com:AndrewRadev/linediff.vim.git"],"one_files":["https://gist.githubusercontent.com/jaandrle/9356d737ef5dfda2efbe50248d32cb78/raw/7f73e223b93d9cb889eecc77850604ebe7e102a3/cwordhi.vim","https://gist.githubusercontent.com/jaandrle/d0ce92e67d03dd8da4b7b932b379b879/raw/b47b1260759d32823890c39df31909f386cc3f6c/vifm.vim"],"pack":["git@github.com:Exafunction/codeium.vim.git","git@github.com:MaxMEllon/vim-jsx-pretty","https://github.com/neoclide/coc.nvim.git","git@github.com:editorconfig/editorconfig-vim","git@github.com:jaandrle/coc-custom_elements","https://github.com/mbbill/undotree.git"]} diff --git a/README.md b/README.md index 53f734b..d5355de 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ +[![git3moji–v1.0](https://img.shields.io/badge/git3moji–v1.0-%E2%9A%A1%EF%B8%8F%F0%9F%90%9B%F0%9F%93%BA%F0%9F%91%AE%F0%9F%94%A4-fffad8.svg?style=flat-square)](https://robinpokorny.github.io/git3moji/) + # dotfiles **(WIP)** This repository contains my dotfiles. They are managed by using `git clone --bare`, see for example [How to Store Dotfiles - A Bare Git Repository \| Atlassian Git Tutorial](https://www.atlassian.com/git/tutorials/dotfiles). +## Files info +- [Vim](./.vim/README.md) + ## On a new machine 1. install git 1. `cd ~`