1 2 3 4 5 6 7 8 9 | nnoremap <F4> :call CodeClapRunToCursor()<CR> function! CodeClapRunToCursor() :call system('./codeClapDebug.bash ' . expand('%:t') . ' ' . line(".")) endfunction nnoremap <F5> :call CodeClapRunToMain()<CR> function! CodeClapRunToMain() :call system('./codeClapDebug.bash') endfunction |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/bash fileName=$1 lineNum=$2 #configuration executable=~/dev/projects/engine2d/build/a.out workingDir=~/dev/projects/engine2d/build codeClap=~/dev/codeclap/codeclap if [ $# == 2 ]; then $codeClap --chdir $workingDir $executable $fileName:$lineNum else $codeClap --chdir $workingDir $executable fi |
1 2 3 4 5 6 7 8 9 10 11 | (defun codeClapRunToCursor () (interactive) (compile (format "./codeClapDebug.sh %s %s" (file-name-nondirectory buffer-file-name) (line-number-at-pos))) ) (global-set-key [f8] 'codeClapRunToCursor) (defun codeClapRunToMain () (interactive) (compile "./codeClapDebug.sh") ) (global-set-key [C-f8] 'codeClapRunToMain) |
albatros
After two weeks of usage, I have to say can't do without. And run to cursor is really awesome. Can't wait for even more possibilities :D
It already replaced gdb and printf for most tasks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | @echo off SET fileName=%1 SET lineNum=%2 SET executable="%~dp0..\build\win32_game.exe" SET workingDir="%~dp0..\build\" SET codeclap="w:\misc\lib\codeclap\codeclap.exe" if "%~1" == "" ( %codeclap% --chdir %workingDir% %executable% %fileName%:%lineNum% ) else ( %codeclap% --chdir %workingDir% %executable% ) |
bjeeeern
I tried to do this on 0.6.0 on windows 7, just calling the codeClap.exe but I can only get the program to start with an empty configuration.
I tried to pass it the arguments by hand but got same result.
bjeeeern
I tried to do this on 0.6.0 on windows 7, just calling the codeClap.exe but I can only get the program to start with an empty configuration.
I tried to pass it the arguments by hand but got same result.
Is it just a bug or am I missing something obvious?
Also, if this is not the place for this kind of post please tell me and I'll send an e-mail instead ^_^
1 2 3 4 5 6 7 | "W:\misc\lib\codeclap\codeclap.exe" --chdir "W:\handmade\build\" "W:\handmade\build\handmade.exe" handmade.cpp:1227 "W:\misc\lib\codeclap\codeclap.exe" --chdir "W:\handmade\build\" "W:\handmade\build\handmade.exe" W:\handmade\code\handmade.cpp:1227 "W:\misc\lib\codeclap\codeclap.exe" --chdir "W:\handmade\build\" "W:\handmade\build\handmade.exe" "W:\handmade\code\handmade.cpp":1227 "C:\Users\kuma\Desktop\enviroment\misc\lib\codeclap\codeclap.exe" --chdir "C:\Users\kuma\Desktop\enviroment\handmade\build\""C:\Users\kuma\Desktop\enviroment\handmade\build\handmade.exe" handmade.cpp:1227 "C:\Users\kuma\Desktop\enviroment\misc\lib\codeclap\codeclap.exe" --chdir "C:\Users\kuma\Desktop\enviroment\handmade\build\" "C:\Users\kuma\Desktop\enviroment\handmade\build\handmade.exe" C:\Users\kuma\Desktop\enviroment\handmade\handmade.cpp:1227 "C:\Users\kuma\Desktop\enviroment\misc\lib\codeclap\codeclap.exe" --chdir "C:\Users\kuma\Desktop\enviroment\handmade\build\" "C:\Users\kuma\Desktop\enviroment\handmade\build\handmade.exe" "C:\Users\kuma\Desktop\enviroment\handmade\handmade.cpp":1227 |
bjeeeern
I am on 0.7.2 now but still does not seem to work.
I'll post some variations of the command I put in the terminal and the resulting program screen I get.