j2969719 / doublecmd-plugins Goto Github PK
View Code? Open in Web Editor NEWAdditions for Double Commander (third-party)
Additions for Double Commander (third-party)
Предлагаю добавить в buttons.md пример кнопки создания патча для изменённого файла в локальном git-репозитории (не проиндексированные изменения, т.е. до git add
или сразу git commit
!)
DOUBLECMD#TOOLBAR#XMLDATA<?xml version="1.0" encoding="UTF-8"?>
<doublecmd>
<Program>
<ID>{7E175254-7084-4705-BD26-BABB6E1B9329}</ID>
<Icon>cm_comparecontents</Icon>
<Hint>git: view diff (current file, active panel)</Hint>
<Command>git</Command>
<Params>%t1 diff %fs > patch.diff</Params>
</Program>
</doublecmd>
Может быть, есть смысл попробовать выпилить из строки emblem-
и квадратные скобки? Если не влом и не скажется на производительности :)
Вывод ведь не дистрибутиво-зависимый?
Hello, I can't understand what settings I need to change to make from the bright white to the dark theme...
P.s I'm using the portable version
В крайних коммитах добавлено
if (SysUtils.DirectoryExists(FileName)) then
return nil;
end
а зачем? Там далее идёт
local attr = SysUtils.FileGetAttr(FileName);
можно и на другой атрибут здесь же проверить:
if (math.floor(attr / 0x00000010) % 2 ~= 0) then
return nil;
end
или объединить в одно условие с оператором or
.
По идее, один запрос к файловой системе и два сравнения быстрее двух запросов (одного и того же, кажется) и двух сравнений?
Может быть, есть смысл вынести параметры запуска в ini-файл?
It's a fairly popular format.
Big thanks, good plugin :)
Is there any plugin or action or whatever that could work in conjunction with the official desktop app in Ubuntu/Mint to provide a simple context menu item that lets the user copy the Dropbox link to the selected file/folder? That's all I need and apparently the Cloud plugin by @ivanenko is way too obscure in regard to its usage.
There is a Cinnamon -> Nemo plugin that does that and it's the only thing that makes me still use it when necessary. I'd like to eliminate that "dependency".
As there is neither a Makefile nor a CMake or any other buildtool config available after cloning this repository - what am I supposed to do to get these plugins compiled and ready for installing in Double Commander?
$ make
gcc -shared -fPIC -Wl,--no-as-needed -lmagic -I/usr/include/magic -I../../sdk simplefileinfowdx.c -o simplefileinfo.wdx
simplefileinfowdx.c:11:19: fatal error: magic.h: Нет такого файла или каталога
#include <magic.h>
^
compilation terminated.
makefile:7: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 1
yura@yura:~/programs/filemanagers/doublecmd/plugins/wdx/simplefileinfo$ make
gcc -shared -fPIC -Wl,--no-as-needed -lmagic -I/usr/include/magic -I../../sdk simplefileinfowdx.c -o simplefileinfo.wdx
simplefileinfowdx.c:11:19: fatal error: magic.h: Нет такого файла или каталога
#include <magic.h>
^
compilation terminated.
makefile:7: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 1
What I must install to resolve this conflict ?
http://libreportal.net/uploads/files/doublecommander/synaptic.png
Something like this?
diff --git a/plugins/dsx/tracker_textsearch/src/Makefile b/plugins/dsx/tracker_textsearch/src/Makefile
index c0e06f1..950fb70 100644
--- a/plugins/dsx/tracker_textsearch/src/Makefile
+++ b/plugins/dsx/tracker_textsearch/src/Makefile
@@ -1,6 +1,6 @@
CC = gcc
CFLAGS = -shared -fPIC -Wl,--no-as-needed
-INCLUDES = `pkg-config --cflags --libs tracker-sparql-2.0` -I../../../sdk
+INCLUDES = `pkg-config --cflags --libs tracker-sparql-3.0` -I../../../sdk
PLUGNAME = $(shell basename $(realpath ..)).$(shell basename $(realpath ../..))
all:
diff --git a/plugins/dsx/tracker_textsearch/src/plugin.c b/plugins/dsx/tracker_textsearch/src/plugin.c
index 68169ca..4d95b6f 100644
--- a/plugins/dsx/tracker_textsearch/src/plugin.c
+++ b/plugins/dsx/tracker_textsearch/src/plugin.c
@@ -85,7 +85,7 @@ void DCPCALL StartSearch(int PluginNr, tDsxSearchRecord* pSearchRec)
else
query = g_strdup_printf(notext_queryf, g_filename_to_uri(pSearchRec->StartPath, NULL, NULL), pSearchRec->FileMask);
- connection = tracker_sparql_connection_get(NULL, &error);
+ connection = tracker_sparql_connection_new(0, NULL, NULL, NULL, &error);
if (connection)
{
I am not sure :)
Can you try to check? mimescript.wlx
from here works fine.
P.S. I use Xubuntu 17.10 x64.
I am trying to preview html using plugin of wlxwebkit_qt5. My system is wslg ubuntu 2204 lts, and I have installed required libraries (libqt5webkit5) and the plugin can be added. When pressing ctrl+Q to preview a html file, it throws an error:
QWidget: Must construct a QApplication before a QWidget
Can some help me fix the question? I am not familiar with c++ and qt5 so cannot debug it by myself.
I am using DC to view some htmls on a remote server and prevent from downloading them to local computer.
Thanks!
Может быть есть смысл заменить md5sum
на sha1sum
? Немного подольше, зато вероятность коллизий ниже.
P.S. С RHash не сравнивал, не уловил, как засечь время.
Бинарник отсюда требует libconfig.so.11
, а у меня libconfig.so.9
(линк на libconfig.so.9.2.0
), при этом линка libconfig.so
, как у некоторых, нет и, видимо, с другими версиями ОСи и либ всплывёт тоже.
Это как-то можно разрулить не пересобирая бинарник под себя?
По сути этот вьювер для DSV вообще, сначала подумал - только CSV-файлы, с запятой, хотя на русском чаще с точкой с запятой ";", а тут разглядел:
dialect = sniffer.sniff(sample)
reader = csv.reader(f, dialect)
и посмотрел этот Sniffer в модуле csv
- там и запятая, и табуляция, и точка с запятой, и пробел, и ещё ", ".
Тогда, может быть, стоит сразу дополнить settings.ini
, чтобы было понятнее?
# [csv]
# GTK2
# command = /path/to/csv-viewer-plug-gtk2 -w %d %s
# GTK3
# command = /path/to/csv-viewer-plug -w %d %s
+# [tsv]
+# redirect = csv
P.S. Есть репорты от других пользователей? Тут - полтора десятка и только от меня, как-то неловко стало :)
По шагам:
simplefileinfo
в списке плагинов так, чтобы в диалоге свойств симлинков именно он отдавал поля и значения;| DC v0.9.0 alpha Rev. 7911 -- x86_64-Linux-gtk2
| Ubuntu 17.10 -- GTK 2.24.31 | PID 8064
Unhandled exception: EAccessViolation: Access violation
Stack trace:
$00007F45C17045D0 in /lib/x86_64-linux-gnu/libc.so.6
$00000000007FE449 line 763, column 42 of uwdxmodule.pas in ~/doublecmd/doublecmd
$00000000004D852D line 149, column 3 of include/customform.inc in ~/doublecmd/doublecmd
$00000000009DC731 line 190, column 1 of ffileproperties.pas in ~/doublecmd/doublecmd
$00000000005C6718 line 280, column 5 of include/menuitem.inc in ~/doublecmd/doublecmd
$00000000004332AF in ~/doublecmd/doublecmd
$0000000000640B71 line 3706, column 68 of gtk2/gtk2proc.inc in ~/doublecmd/doublecmd
$00000000007B41B6 line 139, column 3 of gtk2/gtk2wsmenus.pp in ~/doublecmd/doublecmd
$00007F45C3093F9D in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
Похоже, крашится на поле MIME encoding
.
Если просто в наборе колонок добавить MIME encoding
:
--------------- 16-12-2017, 22:16:27 ---------------
| DC v0.9.0 alpha Rev. Unknown -- x86_64-Linux-gtk2
| Ubuntu 17.10 -- GTK 2.24.31 | PID 25788
Unhandled exception: EAccessViolation: Access violation
Stack trace:
$00007FC5B2C015D0 in /lib/x86_64-linux-gnu/libc.so.6
$00000000007FE069 line 722, column 40 of uwdxmodule.pas in ~/doublecmd/doublecmd
Касательно коммита 220, добавление режима "r": а его нужно специально добавлять? По умолчанию в io.open
и io.popen
вроде как как раз "r" и используется?
(У себя вроде только в последнем "Search by dependencies in ELF" нашёл - копипаста из fulltextodtwdx.lua
, кажется, лень было всё с нуля писать).
P.S. А что значит "kek"? :) "КЕМ" знаю, а тут теряюсь в догадках :))
Edit: Глянул в документации, по идее - не нужно. Или что-то упускаю?
Возможно, есть смысл добавить параметр --page=1
: сохраняет кучу всего и, блин, номер страницы :))) Натурально заколебало :)
Историю ввода (разные внутренние команды) и закладки можно выпилить, добавив в ~/.config/zathura/zathurarc
строку set database null
(ну и буфер обмена поприятнее с set selection-clipboard clipboard
там же), а вот с историей - болт. Если только лезть в исходники zathura, ну или пробовать мудрить с --config-dir=path
и --data-dir=path
и ставить запрет на запись в файл ~/.local/share/zathura/history
.
I use ubuntu system,when I install these plugins on doublecmd,always prompt missing .so file,what can I do?
Seems to be working on any other filesystem, but not ExFAT. Are there any issues?
OOXML and ODF files have written app and version name of last save.
It is inside .zip file for example in \docProps\app.xml for DOCX ( and ) and meta.xml for ODF ( meta:generator ).
I hope this is a good place to ask for a script that would read those names and versions from office files (so that we don't have to unzip and click and open each time).
Thanks for considering.
... и получить канонический путь. -m
безопаснее, т.к. не требует существование каждого элемента в пути.
Предлагаю добавить в дефолтную детект-строку gtkimgview расширения TIFF (TIF
/TIFF
), работает и, вроде, пошустрее встроенного (особенно покрупнее, под рукой были до 80ти Мб).
Проблем с ходовыми алгоритмами сжатия не заметил (проверял многослойные, экспортнул: без сжатия, LZW, Pack Bits, Deflate, JPEG).
hey mate i cant open a issue on your FreeArch its archived i was wondering if you would add the compression ratio to 7zip i cant seem to find it and add it myself the compression raito is bigger then 7zip i can compress 30gb down to 15gb 7zip compresses it down to 23gb there is a big difference can you add it please
После этого коммита переход к следующему/предыдущему файлу не гасит запущенную(ые) копии mpv (и быстрый, и обычный просмотр).
В формате даты не хватает YYYY.MM.DD hh:mm:ss
, так удобнее сортировать по дате :) Или копию YYYY-MM-DD hh:mm
дополнить секундами?
Тут
if FileName:find("/%.?Trash%-?%d*/files/.-$") then
похоже, ошибка в конце? /.+$
?
/.Trash/<UID>/files
таки попадается, DC учитывает - src/platform/utrash.pas#l218 и далее.P.S. А вот переход в trash:///
в целом (как и в консоли дёргать gio/gvfs) - временами не очень удобен, точнее, совсем не... :( Думал с Dialogs.InputListBox
замутить поиск корзин: /etc/mtab и т.д....
В некоторых кнопках указано <StartPath>%p</StartPath>
, разве нужно не %D
или %d
?
Крайне неудобно. Это связано с плагином или DC (у DC была проблема при переходе к следующему/предыдущему файлу, а тут - страницы одного)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.