elfmz / far2l

Linux port of FAR v2
GNU General Public License v2.0
1.79k stars 174 forks source link

far2l ecosystem #647

Open unxed opened 4 years ago

unxed commented 4 years ago

Let's make something like wiki page here on github with links to all projects related to far2l. One of main advantages of Far for Windows was rich ecosystem, and I see no reason why far2l should have lesser possibilities to have a wider one (actually ecosystem already exists and growing, even although main project still declared as alpha). As we have no wiki page (or something like plugring ;) yet, let's start right here.

Macros A collection of keyboard macros for Linux port of FAR v2: https://github.com/corporateshark/far2l-macros, useful for example if you use a MacBookPro 13" keyboard, which doesn't have keys such as Ins.

Plugins GVFS plugin (rich set of network protocols supported): https://github.com/cycleg/far-gvfs FUSE plugin (sshfs usage simplified): https://github.com/unxed/far2l-fuse editwrap plugin port: https://github.com/unxed/far2l-EditWrap (good example of rather simple plugin porting) Lua plugin: https://github.com/shmuz/LuaFAR-2L sample plugin in FreePascal: https://github.com/unxed/far2l-fpc-helloworld

Compatible apps putty4far2l - putty fork with far2l terminal extensions (all hotkeys, clipboard): https://github.com/unxed/putty4far2l kitty - terminal with far2l extensions also supported: https://github.com/cyd01/KiTTY Far2lRestore - imports Windows Far .reg settings to far2l: http://alter.org.ua/ru/soft/linux/far2l_reg/

Packages/builds/build scripts PPA: https://launchpad.net/~far2l-team/+archive/ubuntu/ppa Custom .deb's: https://github.com/unxed/far2l-deb/ Amazon Linux build script: https://github.com/unxed/far2l-deb/blob/master/misc/amazon_linux_far2l.sh Fedora build howto: https://github.com/nvv13/far2l/commit/c94226c4ffb68f6a21c263cda6ba94338a03e51d Alt Linux build spec: https://github.com/vitlav/far2l/commit/9e6b6dac05d06ac0ad38cdd5d9fb3e4c68f4430b Cygwin howto: https://github.com/elfmz/far2l/issues/583#issuecomment-528762866 nixpkgs (linux & darwin): https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/misc/far2l rpm (centos/fedora): https://github.com/polter-rnd/far2l-rpm/ portable build (for "shared" hosting, etc): https://github.com/elfmz/far2l/issues/647#issuecomment-787537688

Notable forks (see branches also) Alter1 (slow copy fix, unicode detection fix, KOI8-U, etc) https://github.com/Alter-1/far2l ha3flt (hidden files display mode shown) https://github.com/ha3flt/far2l l-4-l (pdf support in multiarc) https://github.com/l-4-l/far2l svost (large code cleanup work) https://github.com/svost/far2l singalen (macos build fixes) https://github.com/singalen/far2l shmuz (adoption for better Lua support): https://github.com/shmuz/far2l

Colors Monokai-inspired color theme https://github.com/elfmz/far2l/issues/791#issuecomment-709407687

polter-rnd commented 4 years ago

Added package for Fedora and Centos: https://github.com/polter-rnd/far2l-rpm/ Builds here: https://copr.fedorainfracloud.org/coprs/polter/far2l/

unxed commented 4 years ago

https://repology.org/project/far2l/versions

unxed commented 4 years ago

ebuild for Gentoo

unxed commented 4 years ago

OpenSUSE: https://software.opensuse.org//download.html?project=home%3AAndnoVember%3Atest&package=far2l https://build.opensuse.org/package/view_file/home:AndnoVember:test/far2l/far2l.spec?expand=1

tdosov commented 4 years ago

ура! Давно пользуюсь в Ubuntu и Debian. Вот бы ещё и для Астры собрать

unxed commented 4 years ago

По предложению коллеги сделал чатик в телеграме для желающих вот https://t.me/far2l_ru

elfmz commented 3 years ago

I'm thinking about migrating coloring palettes from pseudoregistry into ini file to improve startup speed for poor macos users (see #910 ). Is that a big issue> i know there're reg-based themes distributed somewhere...

elfmz commented 3 years ago

For now its about stuff in REG/HKU/c/k-Software/k-Far2/k-Colors/k-Highlight

unxed commented 3 years ago

I'm thinking about migrating coloring palettes from pseudoregistry into ini file to improve startup speed for poor macos users (see #910 ). Is that a big issue> i know there're reg-based themes distributed somewhere...

updated my themes with .ini files for highlights. don't know about other themes 🤷‍♂️

elfmz commented 3 years ago

seems coloring themes gonna move again, something frightening ripens at config.ini branch..

unxed commented 3 years ago

wow, a war on pseudo registry

elfmz commented 3 years ago

aha, and winner will take away https://github.com/elfmz/far2l/blob/master/far2l/registry.cpp

unxed commented 3 years ago

aha, and winner will take away https://github.com/elfmz/far2l/blob/master/far2l/registry.cpp

Small request. If ini file(s) have been changed in far2l's editor, reload the configuration when closing the editor. Or at least not overwrite ini(s) when exiting far2l, even if "automatically save settings" option is enabled.

elfmz commented 3 years ago

Not sure if its possible with feasible effort

unxed commented 3 years ago

Portable build. Works even on CentOS 7 :) Only one executable: you just upload it to almost any "shared" hosting, and run. TTY-only as intended for remote use. SMB in NetRocks refuses to work properly in portable mode, so no SMB also.

https://github.com/unxed/far2l-deb/tree/master/portable

Build scrips also published (see howtobuild.txt).

Should run on CentOS 7+, Ubuntu 14.04+, Debian 9+, Amazon Linux 2+ and almost any supported distro :)

Catty82 commented 3 years ago

ура! Давно пользуюсь в Ubuntu и Debian. Вот бы ещё и для Астры собрать

https://yadi.sk/d/a9up2j_vNXDkvw

unxed commented 3 years ago

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977790 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977807

https://mentors.debian.net/package/far2l/

elfmz commented 3 years ago

Its opensource, just need to wait a bit... image

unxed commented 2 years ago

Installation script for Oracle Linux (tested on aarch64)

install_far2l_aarch64_oracle_linux.tar.gz

Sorry, no wx, no libarchive, no samba, no webdav. Also python needs some manipulations by hands, see #1164. All other stuff works as expected.

Portable version for aarch64 (even with webdav and libarchive!): https://github.com/unxed/far2l-deb/blob/master/portable/far2l_portable_aarch64.tar.gz

unxed commented 2 years ago

KiTTY 4 far2l: https://github.com/mihmig/KiTTY https://github.com/cyd01/KiTTY/issues/74

unxed commented 2 years ago

putty-nd with far2l extensions https://sourceforge.net/p/putty-nd/feature-requests/36/

2021-03-09 224142

unxed commented 2 years ago

https://github.com/proffix4/FAR2L-FEDORA

RPM spec of far2l (Linux port of FAR Manager v2).

unxed commented 2 years ago

A book about Ruby development mentions far2l as recommended file manager:

There are some other flavors of file managers. However, Far Manager is so useful tool, so programmers have ported this manager to Linux and MacOS. You can find setup instructions by following the link above, but we’ll cover it here for MacOS

https://www.sitepoint.com/premium/books/ruby-is-for-fun/read/1/kkg4ugqh/

unxed commented 2 years ago

far2l built with wxQt

https://build.opensuse.org/package/show/home:AndnoVember:test/far2l-qt

elfmz commented 2 years ago

wxWidgets over qt? Looks little bit weird :), whats point of such configuration?

unxed commented 2 years ago

far2l extensions support merged to mainline KiTTY: https://github.com/cyd01/KiTTY/pull/357

unxed commented 2 years ago

xTRD and xSCL plugins ported to far2l

https://github.com/atsidaev/xTRD-xSCL-far2l

unxed commented 2 years ago

EditWrap plugin port (good simple example of how to port windows plugins to linux)

https://github.com/unxed/far2l-EditWrap

unxed commented 2 years ago

Sample far2l plugin written in Pascal (builds with Free Pascal Compiler). Maybe helpful for porting Pascal plugins, as it has PluginW.pas module updated for far2l plugin API changes and also Windows.pas with some required WinAPI constants and structures that FPC do not offer by default.

https://github.com/unxed/far2l-fpc-helloworld

dvlom99 commented 2 years ago

far2l extensions support merged to mainline KiTTY

А что нужно сделать (включить\настроить), чтобы воспользоваться новой функциональностью? Пробовал версию 0.76.0.8 с сайта https://www.fosshub.com/KiTTY.html, ничего не получилось.

unxed commented 2 years ago

far2l extensions support merged to mainline KiTTY

А что нужно сделать (включить\настроить), чтобы воспользоваться новой функциональностью? Пробовал версию 0.76.0.8 с сайта https://www.fosshub.com/KiTTY.html, ничего не получилось.

Там с небольшими ошибками вмержили патч, я сделал пулл реквест с исправлениями

unxed commented 2 years ago

The far2l plugin that searches the word under the cursor below or above the current location. This is quite useful for quick navigation in sources

https://github.com/axxie/far2l-jumpword/

sclea commented 2 years ago

The Far2l Starry Dark theme: https://github.com/sclea/far2l-starry-dark-theme

ivanshatsky commented 2 years ago

Build TTY version of far2l under CentOS 7

  1. Install latest Git if you don't have one:
    yum install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
    yum install git
  2. Install devtoolset-7 (GCC 7.3.1):
    yum install centos-release-scl
    yum install devtoolset-7-gcc-c++
  3. Install far2l build prerequisites:
    yum install epel-release
    yum install gawk m4 cmake3 xerces-c-devel uchardet-devel spdlog-devel libarchive-devel
  4. If you want to build Python plugin, install Python 3 development libraries:
    yum install python3-devel
  5. To enable NetRocks additional targets, install the following libraries:
  1. Get the source code:
    git clone https://github.com/elfmz/far2l
  2. Prepare build directory:
    mkdir far2l.build && cd far2l.build
  3. Build and install far2l:
    scl enable devtoolset-7 bash
    cmake3 -DUSEWX=no -DPYTHON=yes -DCMAKE_BUILD_TYPE=Release ../far2l
    make
    make install
    exit

    Now you can run far2l from the shell prompt. Enjoy!

unxed commented 1 year ago

Astra Linux installation guide for far2l

https://m.youtube.com/watch?v=Om4ItC2ELAY

unxed commented 1 year ago

Пакет для ALT Linux: http://www.sisyphus.ru/ru/srpm/far2l Пакет для OpenSuse: https://build.opensuse.org/package/show/home:AndnoVember:test/far2l Appimage: https://github.com/area-of-dev/Far2l.AppImage/releases для Gentoo: https://gpo.zugaina.org/Overlays/guru/app-misc/far2l Для Arch: https://aur.archlinux.org/packages/far2l-git https://packages.altlinux.org/en/sisyphus/srpms/far2l/ Для FreeBSD: https://www.freshports.org/misc/far2l Ещё несколько пакетов для разных дистров: https://repology.org/project/far2l/versions

vndnua commented 1 year ago

Build TTY version of far2l under CentOS Stream 9


  1. Install latest Git if you don't have one:
    dnf install git
  2. Install devtoolset:
    dnf install gcc-c++
  3. Install far2l build prerequisites:
    dnf install epel-release
    dnf install gawk m4 cmake3 xerces-c-devel uchardet-devel spdlog-devel libarchive-devel pcre-devel
  4. If you want to build Python plugin, install Python 3 development libraries:
    dnf install python3-devel
  5. To enable NetRocks additional targets, install the following libraries:
unxed commented 1 year ago

Alpine Linux build https://github.com/michaellukashov/far2l/releases/download/untagged-881ef1a464438b0391b9/far2l-nowx-static-alpine.tar.gz

Required changes to build: https://github.com/michaellukashov/far2l/tree/lmv/dev

Run build: docker/docker.sh

From https://t.me/far2l_ru/4539

unxed commented 1 year ago

Makefile for OpenWRT: https://github.com/elfmz/far2l/issues/1438#issuecomment-1336471867

unxed commented 1 year ago

Portable version updated: now able to run on as ancient systems as Debian 7, CentOS 6, Ubuntu 14.04. Also bug with sftp client in netrocks not working on some systems seems to be fixed.

spvkgn commented 1 year ago

Makefile for OpenWRT:

Improved a bit https://gist.github.com/spvkgn/6fbfe7a68dbfec0feade847729117751

unxed commented 1 year ago

far2l net interfaces configuration plugin https://github.com/VPROFi/netcfgplugin

unxed commented 1 year ago

Lots of useful info on far2l in Russian: https://github.com/akruphi/far2l/wiki

alexmyczko commented 1 year ago

Meanwhile: https://packages.ubuntu.com/search?keywords=far2l

atolismesh commented 1 year ago

Since May 18 2023 OpenWRT switched from libpcre to libpcre2. Use following Makefile to build far2l opkg .ipk for current OpenWRT builds/snapshots:

include $(TOPDIR)/rules.mk

PKG_NAME:=far2l
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/elfmz/far2l.git
PKG_SOURCE_VERSION:=master
CMAKE_INSTALL:=1

PKG_LICENSE:=GPL-2
PKG_LICENSE_FILES:=LICENSE.txt
PKG_MAINTAINER:=Ivan Sorokin <unxed@mail.ru>

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

define Package/far2l
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Far2L File Manager
ifdef CONFIG_PACKAGE_libpcre2
  DEPENDS:=+libstdcpp +libpcre2
else
  DEPENDS:=+libstdcpp +libpcre
endif 
endef

define Package/far2l/install
    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/far2l $(1)/usr/share/far2l
    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/far2l $(1)/usr/bin
    $(CP) $(PKG_INSTALL_DIR)/usr/lib/far2l/* $(1)/usr/lib/far2l/
    $(CP) $(PKG_INSTALL_DIR)/usr/share/far2l/* $(1)/usr/share/far2l/
endef

#TARGET_LDFLAGS += -static-libstdc++

CMAKE_OPTIONS += \
    -DUSEUCD=OFF \
    -DUSEWX=OFF \
    -DCOLORER=OFF \
    -DNETROCKS=OFF

ifdef CONFIG_USE_MUSL
    CMAKE_OPTIONS += -DMUSL=ON
endif

ifdef CONFIG_PACKAGE_busybox
    CMAKE_OPTIONS += -DTAR_LIMITED_ARGS=ON
endif

$(eval $(call BuildPackage,far2l))
spvkgn commented 1 year ago

Install far2l in Termux from my repository:

echo "deb [trusted=yes] https://spvkgn.github.io/far2l-termux termux extras" | tee $PREFIX/etc/apt/sources.list.d/far2l.list && \
apt update && apt install far2l
~ $ apt list far2l*
Listing... Done
far2l-plugins-colorer/termux,now 2.5.1+git20230717-1 aarch64
far2l-plugins-netrocks/termux 2.5.1+git20230717-1 aarch64
far2l-ttyxi/termux 2.5.1+git20230717-1 aarch64
far2l/termux,now 2.5.1+git20230717-1 aarch64
Screenshot ![Снимок экрана в 2023-07-12 20-53-08](https://github.com/elfmz/far2l/assets/4147135/a42d6528-25ba-4cc6-afb7-0b26227a4343)
unxed commented 1 year ago

Ветка форума оригинального Far для Windows, где far2l обсуждать можно: https://forum.farmanager.com/viewtopic.php?t=12813

unxed commented 1 year ago

far2l for Android (Termux): https://t.me/far2l_ru/9771

elfmz commented 1 year ago

да уж, фар на андроиде это конечно занимательно.. а оно без клавы хоть немного юзабельно? думаю там как минимум надо всякие твики делать чтоб долгим нажатием выделять файлы по типу Ins'а и т.п.

spvkgn commented 1 year ago

В термуксе есть Ins и другие клавиши (см. https://wiki.termux.com/wiki/Touch_Keyboard) , а так внешняя клавиатура в помощь)