1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
%
% anyremote configuration file for to make basic file operations with help of
% GUI of Java client. (Server-mode)
%
% STATUS stable
% TODO handle braces/brackets in file names
% XTEST no
% SOUND no
% ENV no
% FBROWSER
% Uncomment if needed
%AutoRepeat=false
%Baudrate=19200
%Device=bluetooth:19
%Log=true
Screen=true
GuiAppName=FileManager3
GuiAppBinary=true
GuiAppIcon=fileopen.png
GuiAppType=Custom
[Aliases]
% Cancel buttons on different phones
-11=Cancel
-8=Cancel
69=Cancel
[End]
[Keys]
(InCall)=Make(remote,off);
(EndCall)=Make(remote,on);
(Connect)=Set(parameter,debug,on);\
Get(model);\
Set(icons,File manager,1,view_tree,2,fullscreen,3,minimize,4,default,5,default,6,default,7,default,8,default,9,default,*,question,0,exit,#,default);\
ExecAndSet(title,sleep 2);\
Macro(FillList);\
Macro(UpdateMenu);
UpdateMenu=Set(menu,replace,GoTo,File info,Copy,Move,Remove,Make Dir,View,Exec);
FillList=Set(iconlist,replace,Files,folder:..);\
Macro(FillDir);\
Macro(FillFile);
FillDir =ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep '/'| xargs -i echo "folder:" {} );
FillFile=ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep -v '/'| xargs -i echo "file:"{} );
SetIndex=ExecAndSet(iconlist,select,cat $HOME/.anyRemote/ar_selidx.tmp);
StoreIndex=Exec(echo $(Index) > $HOME/.anyRemote/ar_selidx.tmp)
GoTo($$)=ExecAndSet(iconlist,replace,Files,echo 'cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";if [ -d "$(Param)" ]; then cd "$(Param)";fi;pwd>$HOME/.anyRemote/ar_storedir.tmp;'|bash -f -s;echo "folder:..");\
Macro(FillDir);\
Macro(FillFile);
Remove($$)=Macro(StoreIndex);\
ExecAndSet(iconlist,replace,Files,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";rm -rf "$(Param)";echo "folder:..");\
Macro(FillDir);\
Macro(FillFile);\
Macro(SetIndex);
Back($$)=Set(list,close);
Back=Set(text,close);
Cancel=Exit
0=Exit
1=Macro(FillList);Macro(UpdateMenu);
2=Set(fullscreen,on);
3=Set(fullscreen,off);
* *=Set(text,replace,Help, Menu-driven basic\nfile operations.\nPress 1 to enter file manager screen);
% -----------------------------------------------------------------------
Exec($$)=Macro(StoreIndex);\
Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`/$(Param)> $HOME/.anyRemote/ar_execfile.tmp);\
Set(editfield,Enter parameters,Parameters,);\
SetMode(EXEC);
[Mode]=EXEC
Ok($$)=ExecAndSet(text,replace,Results,echo 'cd "`cat $HOME/.anyRemote/ar_storedir.tmp`"; `cat $HOME/.anyRemote/ar_execfile.tmp` $(Param)' | bash -f -s);\
SetMode(EXECSHOW);
Back($$)=Macro(FillList);\
Macro(SetIndex);\
Macro(UpdateMenu);\
SetMode(default);
[ModeEnd]
[Mode]=EXECSHOW
(ExitMode)=Macro(FillList);\
Macro(SetIndex);\
Macro(UpdateMenu);
Back=SetMode(default);
[ModeEnd]
% -----------------------------------------------------------------------
Make Dir($$)=Macro(StoreIndex);\
Set(editfield,Enter name,New Directory,);\
SetMode(MKDIR);
[Mode]=MKDIR
Ok($$)=ExecAndSet(iconlist,replace,Files,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";mkdir $(Param);echo "folder:..");\
Macro(FillDir);\
Macro(FillFile);\
Macro(SetIndex);\
Macro(UpdateMenu);\
SetMode(default);
Back($$)=Macro(FillList);\
Macro(SetIndex);\
Macro(UpdateMenu);\
SetMode(default);
[ModeEnd]
% -----------------------------------------------------------------------
File info($$)=Macro(StoreIndex);\
Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`/$(Param)> $HOME/.anyRemote/ar_infofile.tmp);\
SetMode(FINFO);
[Mode]=FINFO
(EnterMode)=ExecAndSet(text,replace,File info,file "`cat $HOME/.anyRemote/ar_infofile.tmp`">$HOME/.anyRemote/ar_infodata.tmp;ls -l "`cat $HOME/.anyRemote/ar_infofile.tmp`" >>$HOME/.anyRemote/ar_infodata.tmp;cat $HOME/.anyRemote/ar_infodata.tmp)
(ExitMode)=Set(text,close);\
Macro(FillList);\
Macro(SetIndex);\
Macro(UpdateMenu);
Back=SetMode(default);
[ModeEnd]
% -----------------------------------------------------------------------
View($$)=Macro(StoreIndex);\
Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`/$(Param)> $HOME/.anyRemote/ar_viewfile.tmp);\
SetMode(VIEW);
[Mode]=VIEW
(EnterMode)=ExecAndSet(text,replace,File View,more "`cat $HOME/.anyRemote/ar_viewfile.tmp`");
(ExitMode)=Macro(FillList);\
Macro(SetIndex);\
Macro(UpdateMenu);
Back=SetMode(default);
[ModeEnd]
% -----------------------------------------------------------------------
Copy($$)=Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`/$(Param)> $HOME/.anyRemote/ar_copyfile.tmp);\
SetMode(COPY)
[Mode]=COPY
(EnterMode)=ExecAndSet(iconlist,replace,Copy To,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`>$HOME/.anyRemote/ar_copystoredir.tmp;echo "folder:..");\
Macro(FillCDir);\
Macro(FillCFile);\
Set(menu,replace,GoTo,Copy To);
FillCDir= ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_copystoredir.tmp`";pwd>$HOME/.anyRemote/ar_copystoredir.tmp;ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep '/'| xargs -i echo "folder:" {} );
FillCFile=ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_copystoredir.tmp`";pwd>$HOME/.anyRemote/ar_copystoredir.tmp;ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep -v '/'| xargs -i echo "file:"{} );
GoTo($$)=ExecAndSet(iconlist,replace,Copy To,echo 'cd "`cat $HOME/.anyRemote/ar_copystoredir.tmp`";if [ -d "$(Param)" ]; then cd "$(Param)";fi;pwd>$HOME/.anyRemote/ar_copystoredir.tmp'|bash -f -s;echo "folder:..");\
Macro(FillCDir);\
Macro(FillCFile);
Copy To($$)=ExecAndSet(iconlist,replace,Copy To,cp "`cat $HOME/.anyRemote/ar_copyfile.tmp`" "`cat $HOME/.anyRemote/ar_copystoredir.tmp`"/$(Param);echo "folder:..");\
Macro(FillCDir);\
Macro(FillCFile);\
Macro(UpdateMenu);\
SetMode(default);
Back($$)=Macro(FillList);Macro(UpdateMenu);SetMode(default);
[ModeEnd]
% -----------------------------------------------------------------------
Move($$)=Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`/$(Param)> $HOME/.anyRemote/ar_movefile.tmp);\
SetMode(MOVE);
[Mode]=MOVE
(EnterMode)=ExecAndSet(iconlist,replace,Move To,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo `pwd`>$HOME/.anyRemote/ar_movestoredir.tmp;echo "folder:..");\
Macro(FillMDir);\
Macro(FillMFile);\
Set(menu,replace,GoTo,Move To);
FillMDir =ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_movestoredir.tmp`";pwd>$HOME/.anyRemote/ar_movestoredir.tmp;ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep '/'| xargs -i echo "folder:" {} );
FillMFile=ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_movestoredir.tmp`";pwd>$HOME/.anyRemote/ar_movestoredir.tmp;ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/$/,/'|grep -v '/'| xargs -i echo "file:"{} );
GoTo($$)=ExecAndSet(iconlist,replace,Move To,echo 'cd "`cat $HOME/.anyRemote/ar_movestoredir.tmp`";if [ -d "$(Param)" ]; then cd "$(Param)";fi;pwd>$HOME/.anyRemote/ar_movestoredir.tmp'|bash -f -s;echo "folder:..");\
Macro(FillMDir);\
Macro(FillMFile)
Move To($$)=ExecAndSet(iconlist,replace,Move To,mv "`cat $HOME/.anyRemote/ar_movefile.tmp`" "`cat $HOME/.anyRemote/ar_movestoredir.tmp`"/$(Param);echo "folder:..");\
Macro(FillMDir);\
Macro(FillMFile);\
Macro(UpdateMenu);\
SetMode(default);
Back($$)=Macro(FillList);\
Macro(UpdateMenu);\
SetMode(default);
[ModeEnd]
[End]
|