FAR Manager How To

From KnowWiki
Jump to: navigation, search

Contents

[edit] How to create a shortcut to synchronize panels

Add this to HKEY_CURRENT_USER\Software\Far2\KeyMacros\Shell\CtrlS :

[edit] How to run FAR under Linux

Run under wineconsole (not wine)

wineconsole --backend=user "c:/program files/far/far.exe"

Start from a terminal window if you want to see output of various commands

To make the command line work add the bin folders to the user PATH variable. Run regedit and edit HKEY_CURRENT_USER\Environment Change to something like this:

PATH=c:\\windows;c:\\windows\system32;z:\\bin;z:\\usr\\bin
PATHEXT=.exe;.com;.bat;.;.sh;.pl

[edit] How to run meld from FAR under Linux

Try this

start "z:\bin\bash /home/alex/bin/wine-meld.sh \"!.!\" \"!#!\!.!\""

Or this

H:\bin\wine-meld.sh "!.!" "!#!\!.!"

[edit] How to make FAR portable

call %0\..\RestoreSettingsEx.bat AndrewAdminsky
far -uAndrewAdminsky %1 %2 %3 %4 %5 %6 %7 %8 %9
call %0\..\SaveSettingsEx.bat AndrewAdminsky
call %0\..\DeleteSettingsEx.bat AndrewAdminsky

[edit] How to compile FAR Manager under Ubuntu

CXX = i586-mingw32msvc-g++
CC = i586-mingw32msvc-gcc
M4 = wine "H:\Downloads\Far_src\FAR2_916\tools\m4" -P -DFARBIT=$(DIRBIT)
GAWK = wine "H:\Downloads\Far_src\FAR2_916\tools\gawk"
WINDRES = i586-mingw32msvc-windres -D__FARBIT__=$(DIRBIT)
...
lng: farlang.templ
        @echo generating language files
        @wine "H:\Downloads\Far_src\FAR2_916\tools\lng.generator.exe" -nc -i lang.ini -ol "$(EXEDIR)" farlang.templ
diff -rup ../FAR2_916orig/headers.hpp ./headers.hpp
--- ../FAR2_916orig/headers.hpp 2009-05-13 15:00:48.000000000 -0700
+++ ./headers.hpp       2009-06-11 15:13:24.000000000 -0700
@@ -104,7 +104,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
 
 #ifdef __GNUC__
  #define __NTDDK_H
- #include <ddk\cfgmgr32.h>
+ #include <ddk/cfgmgr32.h>
 #else
  #include <cfgmgr32.h>
 #endif
Only in .: Include
Only in .: lang.hpp
Only in .: lang.ini
diff -rup ../FAR2_916orig/makefile_gcc ./makefile_gcc
--- ../FAR2_916orig/makefile_gcc        2009-05-16 06:59:50.000000000 -0700
+++ ./makefile_gcc      2009-06-11 15:42:39.000000000 -0700
@@ -232,7 +232,7 @@ $(OBJDIR)/%.o: ./UCD/%.cpp
        @echo compiling $<
        @$(CXX) $(CCFLAGS) -c -o $@ $<
        
-$(OBJDIR)/far.rc.o: far.rc res.hpp far.ico
+$(OBJDIR)/far.rc.o: far.rc res.hpp Far.ico
        @echo compiling resource file
        @$(WINDRES) -i $< -o $@
 
diff -rup ../FAR2_916orig/nsUniversalDetectorEx.h ./nsUniversalDetectorEx.h
--- ../FAR2_916orig/nsUniversalDetectorEx.h     2009-03-10 02:46:02.000000000 -0700
+++ ./nsUniversalDetectorEx.h   2009-06-11 15:10:58.000000000 -0700
@@ -1,5 +1,5 @@
-#include "ucd/nscore.h"
-#include "ucd/nsUniversalDetector.h"
+#include "UCD/nscore.h"
+#include "UCD/nsUniversalDetector.h"
 
 class nsUniversalDetectorEx : public nsUniversalDetector {
 public:
diff -rup ../FAR2_916orig/setattr.cpp ./setattr.cpp
--- ../FAR2_916orig/setattr.cpp 2009-05-13 15:00:48.000000000 -0700
+++ ./setattr.cpp       2009-06-11 15:14:40.000000000 -0700
@@ -49,7 +49,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
 #include "constitle.hpp"
 #include "TPreRedrawFunc.hpp"
 #include "imports.hpp"
-#include "taskbar.hpp"
+#include "TaskBar.hpp"
 
 #define DM_SETATTR      (DM_USER+1)
 
diff -rup ../FAR2_916orig/treelist.cpp ./treelist.cpp
--- ../FAR2_916orig/treelist.cpp        2009-05-13 15:00:48.000000000 -0700
+++ ./treelist.cpp      2009-06-11 15:14:59.000000000 -0700
@@ -53,7 +53,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
 #include "lockscrn.hpp"
 #include "macroopcode.hpp"
 #include "RefreshFrameManager.hpp"
-#include "ScrBuf.hpp"
+#include "scrbuf.hpp"
 #include "TPreRedrawFunc.hpp"
 #include "TaskBar.hpp"
diff -rup ../FAR2_916orig/far.rc.m4 ./far.rc.m4
--- ../FAR2_916orig/far.rc.m4   2009-01-14 12:06:06.000000000 -0800
+++ ./far.rc.m4 2009-06-11 15:55:15.000000000 -0700
@@ -2,7 +2,7 @@ m4_include(`farversion.m4')m4_dnl
 #include <windows.h>
 #include "res.hpp"
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-FAR_ICON ICON "far.ico"
+FAR_ICON ICON "Far.ico"
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
 VS_VERSION_INFO VERSIONINFO
 FILEVERSION MAJOR, MINOR, 0, BUILD
make -f makefile_gcc

Tested under Ubutntu 8.10 32bit, up to release Far alpha 916.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox