Giter VIP home page Giter VIP logo

Comments (7)

Juliaria08 avatar Juliaria08 commented on June 3, 2024 1

Oh wait sorry, seems like the file has now been created, weird. I did run it with the parameters I thought I run. I am sorry for anoying you.
I got the following result:

$ inotifywait -m -e create,delete ~/.config/clifm
Setting up watches.
Watches established.
/home/user/.config/clifm CREATE .last

Which just told me that the file didn't exist before and that's weird for me, so ethier I didn't ever run the c command, (which I remember myself running a few hours ago), or for some I ran q instead of Q and changed my memory in the meantime.

from clifm.

Juliaria08 avatar Juliaria08 commented on June 3, 2024 1

Remember that you can alias q to Q so that you don't need to run Q to activate cd-on-quit. Open the config file
(F10) and add this line:

I did that, but probably I didn't test that my change worked.
Thanks for helping 😃

from clifm.

leo-arch avatar leo-arch commented on June 3, 2024 1

Since version 1.16.6, Q (uppercase) isn't required anymore for the cd-on-quit function: the old plain q will do the trick.

from clifm.

leo-arch avatar leo-arch commented on June 3, 2024

Hi @Juliaria08.

the file $HOME/.config/clifm/.last isn't created by clifm

Clifm does create this file itself at exit (as a symlink to ~/.config/clifm/profiles/PROFILE/.last, so that the profile name doesn't matter). I've reproduced all the steps you pointed out and see no error: the file is there. Whatever is the problem, it must be something else.

Btw, have you sourced the script as specified in the wiki? Have you executed clifm using the function name specified in the script (by default c)?

The complete procedure is as follows:

source /usr/share/clifm/functions/cd_on_quit.sh
c
# Once in Clifm:
Q

from clifm.

Juliaria08 avatar Juliaria08 commented on June 3, 2024

from clifm.

leo-arch avatar leo-arch commented on June 3, 2024

Made a clean install (clifm 1.13, from the AUR), using a clean config dir (~/.config/clifm) and nothing: everything works as expected. Let's try with inotifywait (from the inotify-tools package):

  1. Open a terminal and run: inotifywait -m -e create,delete ~/.config/clifm (let it running).
  2. On another terminal run clifm as usual: c and then Q.
  3. Go back to the first terminal, which should inform all files created and/or deleted in ~/.config/clifm. For example, here's the result I get:
$ inotifywait -m -e create,delete ~/.config/clifm
Setting up watches.
Watches established.
/home/user/.config/clifm/ DELETE .last
/home/user/.config/clifm/ CREATE .last

This means that the .last file was first deleted and then recreated at exit.

from clifm.

leo-arch avatar leo-arch commented on June 3, 2024

Good to hear @Juliaria08! And don't worry, shit happens.

Remember that you can alias q to Q so that you don't need to run Q to activate cd-on-quit. Open the config file (F10) and add this line:

alias q='Q'

from clifm.

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.