Giter Club home page Giter Club logo

doublecmd-plugins's People

Contributors

antonsoroko avatar crotoc avatar j2969719 avatar savchenko avatar skif-off avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doublecmd-plugins's Issues

Кнопка для патчей с git

Предлагаю добавить в 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 &gt; patch.diff</Params>
  </Program>
</doublecmd>

emblems.wdx: Вывод информации

Может быть, есть смысл попробовать выпилить из строки emblem- и квадратные скобки? Если не влом и не скажется на производительности :)
Вывод ведь не дистрибутиво-зависимый?

How To Install it?! (Windows 10)

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

Lua: Зачем лишняя проверка SysUtils.DirectoryExists()?

В крайних коммитах добавлено

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.

По идее, один запрос к файловой системе и два сравнения быстрее двух запросов (одного и того же, кажется) и двух сравнений?

Dropbox context menu item => Copy Dropbox link

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".

How do I compile these plugins?

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?

simplefileinfowdx.c:11:19: fatal error: magic.h:

$ 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

tracker_textsearch.dsx: Debian 12+/xUbuntu 22.04+ uses Tracker 3.x

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 :)

qt5 error when using wlxwebkit_qt5

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!

dublicatewdx.lua: Подсчёт контрольных сумм

Может быть есть смысл заменить md5sum на sha1sum? Немного подольше, зато вероятность коллизий ниже.

P.S. С RHash не сравнивал, не уловил, как засечь время.

gtksourceview: depends libconfig.so

Бинарник отсюда требует libconfig.so.11, а у меня libconfig.so.9 (линк на libconfig.so.9.2.0), при этом линка libconfig.so, как у некоторых, нет и, видимо, с другими версиями ОСи и либ всплывёт тоже.
Это как-то можно разрулить не пересобирая бинарник под себя?

gtk_socket.wlx: CSV-Viewer: Дополнение расширением TSV

По сути этот вьювер для 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. Есть репорты от других пользователей? Тут - полтора десятка и только от меня, как-то неловко стало :)

[wdx] simplefileinfo крашит DC

По шагам:

  • двигаем плагин 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

[Lua-wdx] io.open/io.popen mode

Касательно коммита 220, добавление режима "r": а его нужно специально добавлять? По умолчанию в io.open и io.popen вроде как как раз "r" и используется?
(У себя вроде только в последнем "Search by dependencies in ELF" нашёл - копипаста из fulltextodtwdx.lua, кажется, лень было всё с нуля писать).

P.S. А что значит "kek"? :) "КЕМ" знаю, а тут теряюсь в догадках :))

Edit: Глянул в документации, по идее - не нужно. Или что-то упускаю?

zathura (wlx): Игнорирование истории

Возможно, есть смысл добавить параметр --page=1: сохраняет кучу всего и, блин, номер страницы :))) Натурально заколебало :)

Историю ввода (разные внутренние команды) и закладки можно выпилить, добавив в ~/.config/zathura/zathurarc строку set database null (ну и буфер обмена поприятнее с set selection-clipboard clipboard там же), а вот с историей - болт. Если только лезть в исходники zathura, ну или пробовать мудрить с --config-dir=path и --data-dir=path и ставить запрет на запись в файл ~/.local/share/zathura/history.

Read office file app and version

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.

gtkimgview: Add TIFF

Предлагаю добавить в дефолтную детект-строку gtkimgview расширения TIFF (TIF/TIFF), работает и, вроде, пошустрее встроенного (особенно покрупнее, под рукой были до 80ти Мб).

Проблем с ходовыми алгоритмами сжатия не заметил (проверял многослойные, экспортнул: без сжатия, LZW, Pack Bits, Deflate, JPEG).

FreeArch

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

wlxPView (aka dcpoppler): Глюк панели при переходе к следующему/предыдущему файлу

В общем, сабж. Переходить нужно или горячими клавишами, или через пункты в меню Файл, туда-обратно. Выглядит это как-то вот так:

1

К слову, было бы здорово к кнопке "First page" добавить и "Last page". Тут листал 69 страниц, но почему-то только к 42й в голову пришла такая мысль :))

trashwdx.lua: Пара моментов

  1. В формате даты не хватает YYYY.MM.DD hh:mm:ss, так удобнее сортировать по дате :) Или копию YYYY-MM-DD hh:mm дополнить секундами?

  2. Тут

if FileName:find("/%.?Trash%-?%d*/files/.-$") then

похоже, ошибка в конце? /.+$?

  1. /.Trash/<UID>/files таки попадается, DC учитывает - src/platform/utrash.pas#l218 и далее.

P.S. А вот переход в trash:/// в целом (как и в консоли дёргать gio/gvfs) - временами не очень удобен, точнее, совсем не... :( Думал с Dialogs.InputListBox замутить поиск корзин: /etc/mtab и т.д....

buttons.md: StartPath

В некоторых кнопках указано <StartPath>%p</StartPath>, разве нужно не %D или %d?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.