Comments (7)
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.
Remember that you can alias
q
toQ
so that you don't need to runQ
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.
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.
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.
from clifm.
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):
- Open a terminal and run:
inotifywait -m -e create,delete ~/.config/clifm
(let it running). - On another terminal run clifm as usual:
c
and thenQ
. - 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.
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)
- Readline vi-mode remapping compatibility HOT 8
- constant CPU utilization on linux HOT 4
- Spawned apps detaching from Clifm HOT 22
- no directory prediction after .. buf after ... HOT 3
- recursive search for files using /... -x doesn't work on Windows HOT 10
- On exit, CliFM breaks pasting in the terminal (xterm) HOT 17
- Missing dependencies HOT 3
- bulk rename HOT 3
- Build failure with -D_NO_ICONS HOT 2
- Default pdf viewer HOT 4
- temporary paging mode HOT 13
- p and pp could show the number of files HOT 80
- Returning to `clifm` prompt after suspending a running job by sending the suspend character (`Ctrl+Z`) HOT 1
- linker erros during the build process on on msys2 HOT 3
- Assign ELNs to the output of commands HOT 3
- 2-step symbolic link creation HOT 10
- Build failure with -D_NO_SUGGESTIONS HOT 1
- files getting deleted by ungood bulk rename HOT 3
- Fastfetch bug HOT 9
- Submit clifm to Debian unstable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clifm.