Skip to content

Commit

Permalink
"Tags" => "Snips" to de-conflict confusion with CTags plugins
Browse files Browse the repository at this point in the history
If Tab (Ctrl+Tab) inserted in "Substitution Text" box, use tab widths from Notepad++, Fix #28
Replace all indents with Tab in default database
Add "Convert Tabs (N++ setting)" option in Settings to convert any "Substitution Text" Tab based on Notepad++ settings for current language when inserted into current editor
Add fixed-width font option for Substitution Text, Fix #29
Add use Notepad++ colors option for Tags and Substitution Text
Add resize ability for Settings dialog / Substitution Text, Fix #30
Add option to disable confirm prompts before Settings close, Fix #31
  • Loading branch information
VinsWorldcom committed Aug 26, 2022
2 parents ab7f1f4 + 8b7c7ce commit fc21782
Show file tree
Hide file tree
Showing 21 changed files with 1,330 additions and 1,841 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
43 changes: 43 additions & 0 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI_build

on: [push, pull_request]

jobs:
build:

runs-on: windows-latest
strategy:
max-parallel: 6
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Win32]

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1

- name: MSBuild of plugin dll
working-directory: .\
run: msbuild QuickText.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" /p:PlatformToolset="v142" /target:zip
env:
ZIPCMD: 7z a -tzip

- name: Archive
uses: actions/upload-artifact@v3
with:
name: QuickText-${{ matrix.build_configuration }}-${{ matrix.build_platform }}
path: ${{ matrix.build_configuration }}\${{ matrix.build_platform }}\QuickText.dll

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && matrix.build_configuration == 'Release'
with:
body: ${{ github.event.commits[0].message }}
files: ${{ matrix.build_configuration }}\${{ matrix.build_platform }}\QuickText-v${{ github.ref_name }}-${{ matrix.build_platform }}.zip

- name: SHA256
if: startsWith(github.ref, 'refs/tags/') && matrix.build_configuration == 'Release'
run: sha256sum.exe ${{ matrix.build_configuration }}\${{ matrix.build_platform }}\QuickText-v${{ github.ref_name }}-${{ matrix.build_platform }}.zip
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Debug
Release
tags
.vs
*.suo
*.exp
*.lib
*.iobj
*.ipdb
*.zip
bin/*
bin64/*
tags
Win32/*
x64/*
arm64/*
228 changes: 100 additions & 128 deletions Config/QuickText.default.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[1]
#LANGUAGE_NAME=PHP
for.ml=for (\$i = 0; \$i < $; ++\$i)\n{\n $\n}
for.sl=for (\$i = 0; \$i < $; ++\$i)\n $
foreach.ml=foreach (\$$ as \$k => \$v)\n{\n $\n}
foreach.sl=foreach (\$$ as \$k => \$v)\n $
function.private=private function $($)\n{\n $\n}
function.private.static=private static function $($)\n{\n $\n}
function.protected=protected function $($)\n{\n $\n}
function.protected.static=protected static function $($)\n{\n $\n}
function.public=public function $($)\n{\n $\n}
function.public.static=public static function $($)\n{\n $\n}
for.ml=for (\$i = 0; \$i < $; ++\$i)\n{\n $\n}
for.sl=for (\$i = 0; \$i < $; ++\$i)\n $
foreach.ml=foreach (\$$ as \$k => \$v)\n{\n $\n}
foreach.sl=foreach (\$$ as \$k => \$v)\n $
function.private=private function $($)\n{\n $\n}
function.private.static=private static function $($)\n{\n $\n}
function.protected=protected function $($)\n{\n $\n}
function.protected.static=protected static function $($)\n{\n $\n}
function.public=public function $($)\n{\n $\n}
function.public.static=public static function $($)\n{\n $\n}

[12]
#LANGUAGE_NAME=Batch
Expand All @@ -24,73 +24,61 @@ setlocal=setlocal ENABLEDELAYEDEXPANSION\n
case=case $: $\n$
def=#define $\n$
default=default $: $\n$
dowhile=do\n{\n $\n}\nwhile ($);\n$
dowhiles=do\n $\nwhile ($);\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
elseifs=else if ($)\n $\n$
elses=else\n $\n$
for=for ($;$;$)\n{\n $\n}\n$
fors=for ($;$;$)\n $\n$
func=$ $($)\n{\n $\n return $;\n}\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
ifelses=if ($)\n{\n $\n}\nelse\n $\n$
ifs=if ($)\n $\n$
ifselse=if ($)\n $\nelse\n{\n $\n}\n$
ifselses=if ($)\n $\nelse\n $\n$
dowhile=do\n{\n $\n}\nwhile ($);\n$
dowhiles=do\n $\nwhile ($);\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
elseifs=else if ($)\n $\n$
elses=else\n $\n$
for=for ($;$;$)\n{\n $\n}\n$
fors=for ($;$;$)\n $\n$
func=$ $($)\n{\n $\n return $;\n}\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
ifelses=if ($)\n{\n $\n}\nelse\n $\n$
ifs=if ($)\n $\n$
ifselse=if ($)\n $\nelse\n{\n $\n}\n$
ifselses=if ($)\n $\nelse\n $\n$
inc=#include <$>\n$
incl=#include "$"\n$
main=int main(int argc, char* argv[])\n{\n $\n}\n
switch=switch ($)\n{\n $\n}\n$
while=while ($)\n{\n $\n}\n$
whiles=while ($)\n $\n$
main=int main(int argc, char* argv[])\n{\n $\n}\n
switch=switch ($)\n{\n $\n}\n$
while=while ($)\n{\n $\n}\n$
whiles=while ($)\n $\n$

[21]
#LANGUAGE_NAME=Perl
Dumper=use Data::Dumper; \$Data::Dumper::Sortkeys=1; print Dumper \ $; exit;$
callsub=( caller($0) )[$3]$
csv=my \$csv = Text::CSV->new( {sep_char => ',', binary => 1} )\n or die Text::CSV->error_diag;\n\nopen my \$fh, '<', \$$\n or die "\$!";\n\nwhile ( my \$row = \$csv->getline(\$fh) ) {\n $\n}\nif ( not \$csv->eof ) {\n my ( \$cde, \$str, \$pos ) = \$csv->error_diag;\n}\n$
else=else {\n $\n}\n$
elsif=elsif ( $ ) {\n $\n}\n$
for=for my \$$ ( $ ) {\n $\n}\n$
if=if ( $ ) {\n $\n}\n$
ifelse=if ( $ ) {\n $\n} else {\n $\n}\n$
ifelsif=if ( $ ) {\n $\n} elsif ( $ ) {\n $\n} else {\n $\n}\n$
mlread=my \$START = '$';\nmy \$STOP = '$';\nmy \$INCLUDE_START = $1;\nmy \$INCLUDE_STOP = $1;\nmy @data;\nfor ( $ ) {\n if ( /\$START/ .. /\$STOP/ ) {\n next if ( not \$INCLUDE_START and /\$START/ );\n push @data, \$_ unless ( not \$INCLUDE_STOP and /\$STOP/ );\n process_data() if ( /\$STOP/ );\n next;\n }\n process_nodata();\n}\nprocess_data();\n\nsub process_data {\n return if not @data;\n # operate on @data\n $\n @data = ();\n}\n\nsub process_nodata {\n # operate on \$_\n $\n}\n$
csv=my \$csv = Text::CSV->new( {sep_char => ',', binary => 1} )\n or die Text::CSV->error_diag;\n\nopen my \$fh, '<', \$$\n or die "\$!";\n\nwhile ( my \$row = \$csv->getline(\$fh) ) {\n $\n}\nif ( not \$csv->eof ) {\n my ( \$cde, \$str, \$pos ) = \$csv->error_diag;\n}\n$
else=else {\n $\n}\n$
elsif=if ( $ ) {\n $\n} elsif ( $ ) {\n $\n} else {\n $\n}\n$
for=for my \$$ ( $ ) {\n $\n}\n$
if=if ( $ ) {\n $\n}\n$
ifelse=if ( $ ) {\n $\n} else {\n $\n}\n$
mlread=my \$START = '$';\nmy \$STOP = '$';\nmy \$INCLUDE_START = $1;\nmy \$INCLUDE_STOP = $1;\nmy @data;\nfor ( $ ) {\n if ( /\$START/ .. /\$STOP/ ) {\n next if ( not \$INCLUDE_START and /\$START/ );\n push @data, \$_ unless ( not \$INCLUDE_STOP and /\$STOP/ );\n process_data() if ( /\$STOP/ );\n next;\n }\n process_nodata();\n}\nprocess_data\n\nsub process_data {\n return if not @data;\n # operate on @data\n $\n @data = ();\n}\n\nsub process_nodata {\n # operate on \$_\n $\n}\n$
open=open my \$fh, '<', \$$\n or die "\$0: cannot open \$$: \$!";\nmy @lines = <\$fh>;\nclose \$fh;\n$
package=package $;\nuse Class::Struct;\nstruct( $ => '\$', $ => '@', $ => '$Module::Name' );\n1;\n$
sopen=my \$lines;\n{\n local \$/ = undef;\n open my \$fh, '<', \$$;\n \$lines = <\$fh>;\n close \$fh;\n}\n$
sopen=my \$lines;\n{\n local \$/ = undef;\n open my \$fh, '<', \$$;\n \$lines = <\$fh>;\n close \$fh;\n}\n$
start=#!perl\n\nuse strict;\nuse warnings;\n\n$
sub=sub $ {\n my (\$$) = @_;\n\n $\n}\n$
wantarray=my @rets;\nmy \$retType = wantarray;\n\nif ( not defined \$retType ) {\n print $@rets;\n} elsif (\$retType) {\n return @rets;\n} else {\n return \@rets;\n}\n$
while=while ( $ ) {\n $\n}\n$
sub=sub $ {\n my (\$$) = @_;\n\n $\n}\n$
wantarray=my @rets;\nmy \$retType = wantarray;\n\nif ( not defined \$retType ) {\n print $@rets;\n} elsif (\$retType) {\n return @rets;\n} else {\n return \@rets;\n}\n$
while=while ( $ ) {\n $\n}\n$

[22]
#LANGUAGE_NAME=Python
class=class $($object):\n """$"""\n\n def __init__(self, $):\n $\n$
def=def $($):\n """$"""\n\n $\n$
elif=elif $:\n $\n$
else=else:\n $\n$
for=for $ in $:\n $\n$
if=if $:\n $\n$
ifelif=if $:\n $\nelif $:\n $\nelse:\n $\n$
ifelse=if $:\n $\nelse:\n $\n$
main=if __name__ == '__main__':\n main()\n
openread=$infile = open($, 'r$')\n$lines = $infile.readlines()\n$infile.close()\n$
openwrite=$outfile = open($, 'w$')\n$ = $outfile.write($)\n$outfile.close()\n$
class=class $($object):\n """$"""\n\n def __init__(self, $):\n $\n$
def=def $():\n """$"""\n\n $\n$
elif=if $:\n $\nelif $:\n $\nelse:\n $\n$
else=else:\n $\n$
for=for $ in $: $\n
if=if $:\n $\n$
ifelse=if $:\n $\nelse:\n $\n$
start=#!python\n\nimport os\nimport sys\n\n$
try=try:\n $\nexcept $:\n $\n$

[255]
#LANGUAGE_NAME=GLOBAL
copyright=Copyright (C) $ 20$\n\nhttp://$\n\nAll rights reserved\n$
lorem=Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

[26]
#LANGUAGE_NAME=Shell
for=for $ in $\ndo\n $\ndone\n$
if=if [ $ ]\nthen\n $\nfi\n$

[29]
#LANGUAGE_NAME=TCL
Expand All @@ -104,31 +92,31 @@ regsub=regsub -all {$} "$" {$} $\n$
[3]
#LANGUAGE_NAME=C++
case=case $: $\n$
class=class $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n$
class=class $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n$
def=#define $\n$
default=default $: $\n$
dowhile=do\n{\n $\n}\nwhile ($);\n$
dowhiles=do\n $\nwhile ($);\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
elseifs=else if ($)\n $\n$
elses=else\n $\n$
for=for ($;$;$)\n{\n $\n}\n$
fors=for ($;$;$)\n $\n$
func=$ $($)\n{\n $\n return $;\n}\n$
hclass=#ifndef $\n#define $\n\nclass $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n\n#endif\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
ifelses=if ($)\n{\n $\n}\nelse\n $\n$
ifs=if ($)\n $\n$
ifselse=if ($)\n $\nelse\n{\n $\n}\n$
ifselses=if ($)\n $\nelse\n $\n$
dowhile=do\n{\n $\n}\nwhile ($);\n$
dowhiles=do\n $\nwhile ($);\n$
else=else\n{\n $\n}\n$
elseif=else if ($)\n{\n $\n}\n$
elseifs=else if ($)\n $\n$
elses=else\n $\n$
for=for ($;$;$)\n{\n $\n}\n$
fors=for ($;$;$)\n $\n$
func=$ $($)\n{\n $\n return $;\n}\n$
hclass=#ifndef $\n#define $\n\nclass $ {\nprivate:\n $\nprotected:\n $\npublic:\n $\n};\n\n#endif\n$
if=if ($)\n{\n $\n}\n$
ifelse=if ($)\n{\n $\n}\nelse\n{\n $\n}\n$
ifelses=if ($)\n{\n $\n}\nelse\n $\n$
ifs=if ($)\n $\n$
ifselse=if ($)\n $\nelse\n{\n $\n}\n$
ifselses=if ($)\n $\nelse\n $\n$
inc=#include <$>\n$
incl=#include "$"\n$
main=int main(int argc, char* argv[])\n{\n $\n}\n
switch=switch ($)\n{\n $\n}\n$
while=while ($)\n{\n $\n}\n$
whiles=while ($)\n $\n$
main=int main(int argc, char* argv[])\n{\n $\n}\n
switch=switch ($)\n{\n $\n}\n$
while=while ($)\n{\n $\n}\n$
whiles=while ($)\n $\n$

[38]
#LANGUAGE_NAME=VHDL
Expand Down Expand Up @@ -199,36 +187,25 @@ x=x"$"$

[53]
#LANGUAGE_NAME=PowerShell
else=else {\n $\n}\n$
foreach=foreach ( $ ) {\n $\n}\n$
function=function $ {\n $\n}\n$
if=if ( $ ) {\n $\n}\n$
ifelse=if ( $ ) {\n $\n} else {\n $\n}\n$
ifelseif=if ( $ ) {\n $\n} elseif ( $ ) {\n $\n} else {\n $\n}\n$
try=try {\n $\n} catch {\n Write-Error "$"\n break\n}\n$
elseif=if ( $ ) {\n $\n} elseif ( $ ) {\n $\n} else {\n $\n}\n$
foreach=foreach ( $ ) {\n $\n}\n$
function=function $ {\n $\n}\n$
if=if ( $ ) {\n $\n}\n$
try=try {\n $\n} catch {\n Write-Error "$"\n break\n}\n$

[58]
#LANGUAGE_NAME=JavaScript
for.ml=for (var i = 0; i < $; ++i)\n{\n $\n}
for.sl=for (var i = 0; i < $; ++i)\n $
foreach.ml=for (var x in $)\n{\n $\n}
foreach.sl=for (var x in $)\n $

[65]
#LANGUAGE_NAME=ASN.1
object=-- 1.3.6.1.4.1.$\n$ OBJECT-TYPE\n SYNTAX $\n MAX-ACCESS $\n STATUS $\n DESCRIPTION\n "$"\n ::= { $ }\n$\n

[74]
#LANGUAGE_NAME=LaTeX
np=\\newpage
for.ml=for (var i = 0; i < $; ++i)\n{\n $\n}
for.sl=for (var i = 0; i < $; ++i)\n $
foreach.ml=for (var x in $)\n{\n $\n}
foreach.sl=for (var x in $)\n $

[8]
#LANGUAGE_NAME=HTML
a=<a href="$">$</a>$
a-id=<a id="$" href="$">$</a>
b=<b>$</b>
body=<body>\n $\n</body>\n$
body-id=<body id="$">\n $\n</body>\n$
body=<body>\n $\n</body>\n$
body-id=<body id="$">\n $\n</body>\n$
br=<br />
color.black=#000000
color.blue=#0000FF
Expand All @@ -241,44 +218,39 @@ color.yellow=#FFFF00
comment=<!-- $ -->\n$
div-class=<div class="$">\n</div>
div-id=<div id="$">\n</div>
div-id-class=<div id="$" class="$">\n $\n</div>
div.p=<div class="p">\n $\n</div>
doctype.html.4.loose=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n "http://www.w3.org/TR/html4/loose.dtd">
doctype.html.4.strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n "http://www.w3.org/TR/html4/strict.dtd">
doctype.xhtml.1.0.loose=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
doctype.xhtml.1.0.strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
doctype.xhtml.1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
fieldset=<fieldset class="$">\n $\n</fieldset>
form=<form name="$" action="$">\n $\n</form>\n$
div-id-class=<div id="$" class="$">\n $\n</div>
div.p=<div class="p">\n $\n</div>
doctype.html.4.loose=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n "http://www.w3.org/TR/html4/loose.dtd">
doctype.html.4.strict=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n "http://www.w3.org/TR/html4/strict.dtd">
doctype.xhtml.1.0.loose=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
doctype.xhtml.1.0.strict=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
doctype.xhtml.1.1=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
fieldset=<fieldset class="$">\n $\n</fieldset>
form=<form name="$" action="$">\n $\n</form>\n$
h1=<h1>$</h1>
h2=<h2>$</h2>
h3=<h3>$</h3>
h4=<h4>$</h4>
h5=<h5>$</h5>
h6=<h6>$</h6>
head=<head>\n $\n</head>\n$
html-body=<html>\n<head>\n <title>$</title>$\n</head>\n<body>\n $\n</body>\n</html>\n
head=<head>\n $\n</head>\n$
html-body=<html>\n<head>\n <title>$</title>\n $\n </head>\n <body>\n $\n </body>\n</html>
i=<i>$</i>$
img=<img src="$" alt="$" />\n$
input=<input type="$" name="$" />\n$
li=<li>$</li>
lil=<li>\n $\n</li>
link=<link href="$" rel="stylesheet" type="text/css" />$
ol=<ol>\n <li>$</li>\n</ol>
p=<p>\n $\n</p>
lil=<li>\n $\n</li>
link=<a href="$">$</a>$
ol=<ol>\n <li>$</li>\n</ol>
p=<p>\n $\n</p>
pre=<pre>$</pre>\n$
pre-class=<pre class="$">\n $\n</pre>
prel=<pre>\n $\n</pre>
script=<script type="text/$javascript" src="$">$</script>$
pre-class=<pre class="$">\n $\n</pre>
prel=<pre>\n $\n</pre>
span=<span>$</span>
table-id=<table id="$">\n <tr>\n <td id="$">\n $\n </td>\n </tr>\n</table>
td=\n<td>\n $\n</td>
table-id=<table id="$">\n <tr>\n <td id="$">\n $\n </td>\n </tr>\n</table>
td=\n<td>\n $\n</td>
title=<title>$</title>\n$
tr=\n<tr>\n $\n</tr>
ul=<ul>\n <li>$</li>\n</ul>
tr=\n<tr>\n $\n</tr>
ul=<ul>\n <li>$</li>\n</ul>
url=http://
www=http://www.

[9]
#LANGUAGE_NAME=XML
start=<?xml version="1.0"?>\n
Loading

0 comments on commit fc21782

Please sign in to comment.