題 FarManager 3:導出設置和歷史記錄


要在FarManager 3.x中導出和導入配置,我可以使用命令“far / export settings.xml”和“far / import settings.xml”。它還保存並恢復我的插件設置。

但是,如果我出於任何原因想要導出和導入操作歷史(命令,文件夾,搜索文本,文件查看等),該怎麼辦?這該怎麼做?


4
2017-12-27 11:46


起源




答案:


你可以復制 C:\Users\<user>\Local Settings\Far Manager\Profile\history.db 到您的新FAR安裝(或其他位置備份)。

history.db 是一個SQLite數據庫(在FAR 3.0 build 4949 x64中)並包含:

  • editorbookmarks_history
pid│num│行│linepos│屏幕線│lobpos
────┼─────┼──────┼─────────┼────────────┼────────
  • editorposition_history
   id│名稱│時間│行│linepos│屏幕│左側│代碼頁
   ────┼───────────────────────────────────────────── ───────────┼────────────────────┼───────┼───────── ┼────────────┼─────────┼─────────
   1│C:\ dev \ lots \ far \ Plugins \ FTP \ lib \Progress_FarCopy.reg│113409365609906748│32│7│32│0│437
   2│C:\ dev \ lots \ far \ Plugins \ FTP \ lib \Progress_JM.reg│113409365636305598│0│0│0│0│1252
  • 歷史
id│種│鍵│類型│鎖│名稱│時間│Guid│文件│數據
─────┼──────┼───────────────────────┼──────┼────── ┼───────────────────────────────────────────────── ───────┼────────────────────┼──────┼───────┼────── ──────
75│3│複製│0│0│C:\ Users \ A \ AppData \ Local \ Google \ Chrome \ User Data \│131406535121264788│││
359│3│SearchText│0│0│\ s {2,}(。+)│131409454921877807│││
360│3│ReplaceText│0│0│>“$ 1txt”│113409454921892816│││
407│3│複製│0│0│創建│131409467955745308│││
412│3│NewFolder│0│0│溫度│131409478016477759│││
4383│0││0│0│gitclonehttps://github.com/FarGroup/FarManager.git│131549537486842679│││C:\ dev \ c ++
  • SQLITE_MASTER
類型│名稱│tbl_name│根頁│sql...
──────┼─────────────────────────────────────────── ─┼─────────────────────────┼──────────┼─────────── ──────────────────────────────────...
表│歷史│歷史│2│CREATETABLE歷史(id INTEGER PRIMARY KEY,...
index│history_idx1│歷史│3│CREATEINDEX history_idx1 ON歷史(親切,...
index│history_idx2│歷史│4│CREATEINDEX history_idx2 ON歷史(親切,...
index│history_idx3│歷史│5│CREATEINDEX history_idx3 ON歷史(親切,...
index│history_idx4│歷史│6│CREATEINDEX history_idx4 ON歷史(親切,...
table│nitorposition_history│manalogposition_history│7│CREATETABLE editorposition_history(id INTEG ...
index│sqlite_autoindex_editorposition_history_1│manowposition_history│8│...
table│manalogbookmarks_history│manalogbookmarks_history│9│CREATETABLE editorbookmarks_history(pid INT ...
index│sqlite_autoindex_editorbookmarks_history_1│manalogbookmarks_history│10│...
index│manocposition_history_idx1│manalogposition_history│11│CREATEINDEX editorposition_history_idx1 ON ...
table│reviewposition_history│reviewposition_history│12│CREATETABLE viewerposition_history(id INTEG ...
index│sqlite_autoindex_viewerposition_history_1│reviewposition_history│13│...
表│Viewerbookmarks_history│lookiebookmarks_history│14│CREATETABLE viewerbookmarks_history(pid INT ...
index│sqlite_autoindex_viewerbookmarks_history_1│lingerbookmarks_history│15│...
index│visorposition_history_idx1│lookorposition_history│18│CREATEINDEX viewerposition_history_idx1 ON ...
  • viewerbookmarks_history
pid│num│filepos│leftpos
────┼─────┼─────────┼────────
  • viewerposition_history
id│名稱...│時間│文件│左側│十六進制│代碼頁
────┼───────────────────────────────────────────── ────────...─┼────────────────────┼───────────┼──── ─────┼─────┼─────────
1│C:\ Users \ A \ AppData \ Local \ Google \ Chrome \ User Data \ Def ...│113406529236576470│0│0│0│1252
2│E:\ Users \ a \ AppData \ Local \ Google \ Chrome \ User Data \ Cer ...│113406533100894047│0│0│0│1252
3│C:\ Users \ A \ AppData \ Local \ Google \ Chrome \ User Data \ A12 ...│131406535532290385│23389│0│0│65001
4│C:\ Users \ A \ AppData \ Local \ Google \ Chrome \ User Data \ Loc ...│131406535566058527│0│6713│0│65001

history.db-shm 和 history.db-wal 是 SQLite臨時文件 我不會復制它們。

要在FAR Manager中直接檢查SQLite文件的內容,請安裝 SQLiteDB插件


3
2017-11-12 15:16