X-Git-Url: https://deadsoftware.ru/gitweb?p=bbdiff.git;a=blobdiff_plain;f=README;h=a7ec05ec822cc20d7fc6edb89766f9029714f1a8;hp=a2a699ccbfc132613ea9ca8d25c9ac73858a2442;hb=4dcb80cd11534f62778c713df546406329385aaf;hpb=e05e957bb4048a7e40b3095c59fb4e2847bd2dfe diff --git a/README b/README index a2a699c..a7ec05e 100644 --- a/README +++ b/README @@ -15,7 +15,7 @@ DiffUtils.Compare (guard TextCmds.FocusGuard) You can directly replace DevSearch.Compare with DiffUtils.Compare in Dev/Rsrc/Menus.odc. -^Q DiffUtils.CompareThis [">" ] +^Q DiffUtils.CompareThis [">" ] Compare two files and produce patch in unified diff format. @@ -41,7 +41,7 @@ Integration with Git 2. Create script odctool-gitdiff: #! /bin/sh - odctool diff -p "$1" "$2" "$5" + odctool diff -C -p "$1" "$2" "$5" 3. Add to .git/config: @@ -63,10 +63,31 @@ Integration with Git *.osf odc[0-9][0-9][0-9][0-9][0-9] - Now you can see diffs using `git diff' and resolve conflicts from BlackBox. +Integration with ranger +----------------------- + +1. To preview documents add to $HOME/.config/ranger/scope.sh: + + handle_extension() { + case "${FILE_EXTENSION_LOWER}" in + + ... + + # BlackBox Compound Document + odc) + odctool -C cat "${FILE_PATH}" && exit 5 + exit 1;; + esac + } + +2. To open/read documents add to $HOME/.config/ranger/rifle.conf: + + ext odc, has odctool, terminal, file = odctool -C cat "$1" | less --tabs=2 -S + + Current state --------------------