Search found 119 matches

by KlepetoX
Thu 11 Dec, 2014 11:31
Forum: Macro Commands Discussions
Topic: Compare files names only, without extension and prefix
Replies: 18
Views: 26841

Compare files names only, without extension and prefix

Does it really work for you?
I doubt, because it is not intended to process regexps.
Indeed, doesn't work at all...
Please define your meaning for "slow".
Compare 20000 files takes one minute or more (large dirs or branch plugin). In small directories it is ok.
by KlepetoX
Thu 11 Dec, 2014 10:26
Forum: Macro Commands Discussions
Topic: Compare files names only, without extension and prefix
Replies: 18
Views: 26841

Compare files names only, without extension and prefix

I have edited macro trying to ignore some more charecters than prefix and extension only. I have tried mf.replace, regex.gsub and :gsub. Each of them is slow, is there another faster possibility? Macro { key ="ShiftDivide"; area ="Shell Search"; description ="Select files wi...
by KlepetoX
Thu 04 Dec, 2014 19:25
Forum: Macro Commands Discussions
Topic: Compare files names only, without extension and prefix
Replies: 18
Views: 26841

Compare files names only, without extension and prefix

Thank you, Shmuel, it works best this way
by KlepetoX
Tue 02 Dec, 2014 19:35
Forum: Macro Commands Discussions
Topic: Compare files names only, without extension and prefix
Replies: 18
Views: 26841

Compare files names only, without extension and prefix

I finally did it. It may be useful for somebody. Shmuel, please see if something should be done better. I am an common user only, not programmer or macro "writer" :-) Macro { key="ShiftDivide"; area="Shell Search"; description="Select files with the same names with...
by KlepetoX
Mon 01 Dec, 2014 19:06
Forum: Macro Commands Discussions
Topic: Compare files names only, without extension and prefix
Replies: 18
Views: 26841

Compare files names only, without extension and prefix

I need macro that compares files on both panels without extensions and prefix (after first space in filename) - filenames only. Example: The same (will be selected): 03 Forgotten Hopes.flac | 06 Forgotten Hopes.mp3 1-14 Transacoustic.mp3 | 05 Transacoustic.ape 06 One Last Goodbye.mp3 | 2-05 One Last...
by KlepetoX
Sun 30 Mar, 2014 07:49
Forum: Support and Troubleshooting
Topic: file list to panel
Replies: 4
Views: 3988

Re: file list to panel

And here is simple macro. Lists all files with current extension in panel: Macro { key="F12"; area="Shell"; description="List all files with current extension in panel"; action=function() Panel.Select(0,0) mf.clip(5,2) Keys"CtrlAdd CtrlIns CtrlSubtract ShiftF4"...
by KlepetoX
Sun 30 Mar, 2014 06:53
Forum: Support and Troubleshooting
Topic: file list to panel
Replies: 4
Views: 3988

Re: file list to panel

Yes, it is possible, here is an example:

Code: Select all

dir /b *.jpg > %temp%\filelist.temp
rem output into panel
tmp:%temp%\filelist.temp
rem output into menu
rem tmp:+menu %temp%\filelist.temp
del %temp%\filelist.temp
You can create macro if you need it often.
by KlepetoX
Mon 24 Mar, 2014 13:21
Forum: General Discussions
Topic: Creating shell links (.lnk) to files/folders
Replies: 4
Views: 18311

Creating shell links (.lnk) to files/folders

Is there any possibility to create shell link files in FAR as with http://plugring.farmanager.com/plugin.php?pid=43&l=en plugin? I mean some newer FAR3 plugin or maybe macro?
by KlepetoX
Fri 07 Mar, 2014 15:35
Forum: Suggestions and Ideas
Topic: Creating new file - set cursor on it after saving
Replies: 2
Views: 15976

Re: Creating new file - set cursor on it after saving

Thanks, works fine with macro

Code: Select all

Keys("F2 CtrlF10 Esc")
on my CtrlEnter which closes editor with saving. It's my fault that I have never noticed CtrlF10 shortcut.
by KlepetoX
Fri 07 Mar, 2014 07:30
Forum: Suggestions and Ideas
Topic: Creating new file - set cursor on it after saving
Replies: 2
Views: 15976

Creating new file - set cursor on it after saving

When I create a new archive or new folder, then cursor is set on the new folder/file. But if I create new file with ShiftF4, the cursor is not set on the new file after saving. Why? If FAR doesn't know it, how can I create macro to replace std. ShiftF4?
by KlepetoX
Thu 20 Feb, 2014 13:09
Forum: Macro Commands Discussions
Topic: Macro for substring file search
Replies: 5
Views: 14720

Re: Macro for substring file search

I wrote this macro for I mostly want to search for mask anywhere inside the filename. That is why I need two asterisks in mask by default. And if the mask is used from the previous searching I want to have the substring between asterisks selected for quick rewriting. Simply try the macro, I think th...
by KlepetoX
Thu 20 Feb, 2014 12:37
Forum: Macro Commands Discussions
Topic: Macro for substring file search
Replies: 5
Views: 14720

Re: Macro for substring file search

ok, thanks for your advice, now it is even more simple and works fine local function GetSearchString() mf.clip(5,2) Keys'CtrlIns' -- content of inputbox to clipboard local s=mf.clip(0) -- load string from clipboard if s==0 then s="" end return s end; Macro { key="CtrlShiftF7"; ar...
by KlepetoX
Thu 20 Feb, 2014 11:01
Forum: Macro Commands Discussions
Topic: Macro for substring file search
Replies: 5
Views: 14720

Macro for substring file search

I was inspired by this topic: http://forum.farmanager.com/viewtopic.php?f=60&t=8435 and tried to write a macro with mask for searching files with mask _ANYWHERE_ in the filename instead of from the beginning. Simply, set the default mask "**.*" instead of "*.*". And if inputb...
by KlepetoX
Tue 04 Feb, 2014 16:24
Forum: General Discussions
Topic: [ANN] Macro-API manual in English is available
Replies: 5
Views: 20503

Re: [ANN] Macro-API manual in English is available

Really? That would be splendid!!! Thank you very much for your effort, you needn't hurry up...
by KlepetoX
Tue 04 Feb, 2014 16:16
Forum: General Discussions
Topic: [ANN] Macro-API manual in English is available
Replies: 5
Views: 20503

Re: [ANN] Macro-API manual in English is available

Good work! But I am using the unofficial version macroapi_manual+links.chm somewhere from http://forum.farmanager.com/viewtopic.php?f=15&t=7302. It is version with links, and for me, it's better to stay with version with links in Russian than with version without links in English language :-( Th...

Go to advanced search