diff --git a/data/filetypes.c b/data/filetypes.c index 44875494..f10fbf02 100644 --- a/data/filetypes.c +++ b/data/filetypes.c @@ -78,18 +78,19 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=1 -[build_settings] -# %f will be replaced by the complete filename -# %e will be replaced by the filename without extension -# (use only one of it at one time) -compiler=gcc -Wall -c "%f" -linker=gcc -Wall -o "%e" "%f" -run_cmd="./%e" - [build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) +FT_00_LB=_Compile +FT_00_CM=gcc -Wall -c "%f" +FT_00_WD= +FT_01_LB=_Build +FT_01_CM=gcc -Wall -o "%e" "%f" +FT_01_WD= FT_02_LB=_Lint FT_02_CM=cppcheck --language=c --enable=warning,style --template=gcc "%f" FT_02_WD= +EX_00_LB=_Execute +EX_00_CM="./%e" +EX_00_WD= diff --git a/data/filetypes.cpp b/data/filetypes.cpp index 3d167ac8..fff1447f 100644 --- a/data/filetypes.cpp +++ b/data/filetypes.cpp @@ -50,18 +50,19 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=1 -[build_settings] -# %f will be replaced by the complete filename -# %e will be replaced by the filename without extension -# (use only one of it at one time) -compiler=g++ -Wall -c "%f" -linker=g++ -Wall -o "%e" "%f" -run_cmd="./%e" - [build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) +FT_00_LB=_Compile +FT_00_CM=g++ -Wall -c "%f" +FT_00_WD= +FT_01_LB=_Build +FT_01_CM=g++ -Wall -o "%e" "%f" +FT_01_WD= FT_02_LB=_Lint FT_02_CM=cppcheck --language=c++ --enable=warning,style --template=gcc "%f" FT_02_WD= +EX_00_LB=_Execute +EX_00_CM="./%e" +EX_00_WD= diff --git a/data/filetypes.haskell b/data/filetypes.haskell index 9269722b..5d589f37 100644 --- a/data/filetypes.haskell +++ b/data/filetypes.haskell @@ -72,17 +72,16 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=1 -[build_settings] -# %f will be replaced by the complete filename -# %e will be replaced by the filename without extension -# (use only one of it at one time) -compiler=ghc --make "%f" -run_cmd="./%e" - [build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) +FT_00_LB=_Compile +FT_00_CM=ghc --make "%f" +FT_00_WD= FT_02_LB=_Lint FT_02_CM=hlint "%f" FT_02_WD= +EX_00_LB=_Execute +EX_00_CM="./%e" +EX_00_WD= diff --git a/data/filetypes.python b/data/filetypes.python index 3843f2b8..fc7f2b29 100644 --- a/data/filetypes.python +++ b/data/filetypes.python @@ -61,18 +61,17 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=0 -[build_settings] -# %f will be replaced by the complete filename -# %e will be replaced by the filename without extension -# (use only one of it at one time) -compiler=python -m py_compile "%f" -run_cmd=python "%f" - [build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) +FT_00_LB=_Compile +FT_00_CM=python -m py_compile "%f" +FT_00_WD= FT_02_LB=_Lint FT_02_CM=pep8 --max-line-length=80 "%f" FT_02_WD= error_regex=(.+):([0-9]+):([0-9]+) +EX_00_LB=_Execute +EX_00_CM=python "%f" +EX_00_WD= diff --git a/data/filetypes.ruby b/data/filetypes.ruby index a173ba4f..c51ddbd0 100644 --- a/data/filetypes.ruby +++ b/data/filetypes.ruby @@ -73,9 +73,13 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=1 -[build_settings] +[build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) -compiler=ruby -c "%f" -run_cmd=ruby "%f" +FT_00_LB=_Compile +FT_00_CM=ruby -wc "%f" +FT_00_WD= +EX_00_LB=_Execute +EX_00_CM=ruby "%f" +EX_00_WD= diff --git a/data/filetypes.sh b/data/filetypes.sh index 8406efe4..715e07cc 100644 --- a/data/filetypes.sh +++ b/data/filetypes.sh @@ -52,12 +52,6 @@ context_action_cmd= # 0 is spaces, 1 is tabs, 2 is tab & spaces #type=1 -[build_settings] -# %f will be replaced by the complete filename -# %e will be replaced by the filename without extension -# (use only one of it at one time) -run_cmd="./%f" - [build-menu] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension @@ -65,3 +59,6 @@ run_cmd="./%f" FT_02_LB=_Lint FT_02_CM=shellcheck --format=gcc "%f" FT_02_WD= +EX_00_LB=_Execute +EX_00_CM="./%f" +EX_00_WD=