Giter Site home page Giter Site logo

Comments (10)

stokito avatar stokito commented on May 13, 2024 1

@fleytman you can use far2l /cd /path/to/dir but there is some problems that I described in #599 and the fix may change the command so please vote.

@unxed In MATE you can install caja-actions package and then run configuration GUI by System / Preferences / Look and feel / Caja Actions or by terminal:

sudo apt install caja-actions
caja-actions-config-tool

Then create a text file far2l.desktop with content:

[Desktop Entry]
Type=Action
Name[en_US]=Open in Far
Name[en]=Open in Far
Name[C]=Open in Far
Tooltip[en_US]=Open in Far
Tooltip[en]=Open in Far
Tooltip[C]=Open in Far
Icon[en_US]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
Icon[en]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
Icon[C]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
TargetLocation=true
TargetToolbar=true
ToolbarLabel[en_US]=Open in Far
ToolbarLabel[en]=Open in Far
ToolbarLabel[C]=Open in Far
Profiles=profile-zero;

[X-Action-Profile profile-zero]
Name[en_US]=Open Far in current directory
Name[en]=Open Far in current directory
Name[C]=Open Far in current directory
Exec=far2l cd
Path=%f
MimeTypes=inode/directory;
Capabilities=Local;

Then press Tools / Import assistant and import the file. Do not forget to press Ctrl+S or File / Save.
Then open Caja and you'll see a far icon in toolbar and in context menu included into Caja Actions actions .
You may want to see the Far icon directly in context menu without submenu. To do so open caja-actions-config-tool and press Edit / Preferences on Runtime prefs tab uncheck Create a root 'Caja actions' menu.

from far2l.

stokito avatar stokito commented on May 13, 2024 1

@unxed to enable it for Desktop:
Open the Capabilities tab and remove the Local condition.

from far2l.

elfmz avatar elfmz commented on May 13, 2024

not sure if such thing is appropriate for far at all

from far2l.

unxed avatar unxed commented on May 13, 2024

I mean "open current folder in far manager". Like commonly used "open current folder in terminal".

from far2l.

fleytman avatar fleytman commented on May 13, 2024

Is there a way to open far2l with the selected directory?
Like:
far2l .
far2l ~/Downloads

from far2l.

stokito avatar stokito commented on May 13, 2024

Speaking generally far2l should create it's own .desktop file and register it in system as caja or nautilus file manages do.

from far2l.

unxed avatar unxed commented on May 13, 2024

@stokito thanks a lot! Item appeared in folders context menu. Is where any way to add it to menu that is appearing then I make right click on desktop's or folder's free space?

from far2l.

stokito avatar stokito commented on May 13, 2024

Well, it should work like that because I checked "Display in location menu" but for some reason, it doesn't work. But there is a workaround: open MIME Types tab and replace inode/directory with *

from far2l.

stokito avatar stokito commented on May 13, 2024
[Desktop Entry]
Type=Action
Name[en_US]=Open in Far
Name[en]=Open in Far
Name[C]=Open in Far
Tooltip[en_US]=Open in Far
Tooltip[en]=Open in Far
Tooltip[C]=Open in Far
Icon[en_US]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
Icon[en]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
Icon[C]=/usr/share/icons/hicolor/48x48/apps/far2l.svg
TargetLocation=true
TargetToolbar=true
ToolbarLabel[en_US]=Open in Far
ToolbarLabel[en]=Open in Far
ToolbarLabel[C]=Open in Far
Profiles=profile-zero;

[X-Action-Profile profile-zero]
Name[en_US]=Open Far in current directory
Name[en]=Open Far in current directory
Name[C]=Open Far in current directory
Exec=far2l cd
Path=%f

from far2l.

unxed avatar unxed commented on May 13, 2024

open MIME Types tab and replace inode/directory with *

Works for folders, thanks!
Still no effect on desktop :(

from far2l.

Related Issues (20)

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.