Hi Unix users, ![Wink ;-)](https://groups.tapatalk-cdn.com/smilies/2988/1534599118.2638-smiley.gif)
some other discussion here brought me to the idea to write a SMALL+EASY macro maybe other (Unix) users might interest.
UE lacks some FTP functionality like direct CTAGS support on Unix systems.
I often work with UE-FTP "based" projects and sometimes I want ALL those files to be opened in a (Unix) editor like GVIM, that expects those filenames to be listed one by one with spaces as parameters.
So I wrote a macro that converts the [file] entries in a prj file:
(see: Sometimes there is only 1 backslash before home (!))
to a space separated list (copied to clipboard) for my (Unix) editor that then loads all those files.
The list looks like this then:
This macro I called prjFiles2Unix does the job. (Yes, there are no checks inside...)
So copy the file list to a new UE tab and let run the macro.
In Unix I type (e.g.): "vim -g " and press the middle mouse button (paste) + ENTER.
I know this one is no rocket science. But sometimes small things make life easier...
rds Bego
![Wink ;-)](https://groups.tapatalk-cdn.com/smilies/2988/1534599118.2638-smiley.gif)
some other discussion here brought me to the idea to write a SMALL+EASY macro maybe other (Unix) users might interest.
UE lacks some FTP functionality like direct CTAGS support on Unix systems.
I often work with UE-FTP "based" projects and sometimes I want ALL those files to be opened in a (Unix) editor like GVIM, that expects those filenames to be listed one by one with spaces as parameters.
So I wrote a macro that converts the [file] entries in a prj file:
Code: Select all
0=FTP::unix1\//home/myuser/prg/src/proj/met/KXY|DoX.c
1=FTP::unix1\//home/myuser/prg/src/proj/met/KXZ|DoY.c
2=FTP::unix1\//home/myuser/prg/src/proj/mod/BU|TestX.c
3=FTP::unix1\//home/myuser/prg/src/proj/met/VE|SaveY.c
4=FTP::unix1\//home/myuser/prg/src/proj/mod/VE|screen.c
5=FTP::unix1\/home/myuser/prg/src/proj/met/VE|SaveZ.c
6=FTP::unix1\//home/myuser/prg/src/proj/mod/VE2|objects.c
7=FTP::unix1\//home/myuser/prg/src/proj/mod/VE2|objects2.c
8=FTP::unix1\//home/myuser/prg/src/proj/que/VE3|Ins_object.c
to a space separated list (copied to clipboard) for my (Unix) editor that then loads all those files.
The list looks like this then:
Code: Select all
/home/myuser/prg/src/proj/met/KXY/DoX.c /home/myuser/prg/src/proj/met/KXZ/DoY.c ...
Code: Select all
InsertMode
ColumnModeOff
HexOff
Top
PerlReOn
Find RegExp "^(.*)/home"
Replace All "/home"
Top
Find "^p"
Replace All " "
Find "|"
Replace All "/"
SelectAll
StartSelect
Copy
In Unix I type (e.g.): "vim -g " and press the middle mouse button (paste) + ENTER.
I know this one is no rocket science. But sometimes small things make life easier...
rds Bego