Comments (7)
I didn't notice the problem of config synchronization
Got it,next version will be changed
from superfile.
I think this can be close
- Update log file from
$XDG_CONFIG_HOME/superfile/data/superfile.log
to$XDG_CACH_DATA
#27
- Update data folder from
$XDG_CONFIG_HOME/superfile/data
to$XDG_DATA_HOME/superfile
9fff97a
- Update
$HOME/.superfile
to$XDG_CONFIG_HOME/superfile
886dbfb
from superfile.
$XDG_CONFIG_HOME
seems just $HOME/.config
Ok i think i can will change it
and the trashFolder
i need some time to Research what is that :(
from superfile.
Update will release in v1.0.1 886dbfb
from superfile.
To be sure that write I wrote in the commit appears for every issue reader, I copy it here :
--
HomeDir + "/.config/superfile"
should be a backup folder only if $XDG_CONFIG_HOME
doesn't exists.
To not access the env var directly you can use https://pkg.go.dev/github.com/rkoesters/xdg/basedir.
Don't forget to change the dataFolder to $XDG_DATA_HOME
or the rkoesters/xdg/basedir
equivalent (and backup folder).
from superfile.
ok i just fix in here
but i think i wont change the data folder because i think it's a bit unnecessary
from superfile.
The use case for a separate data folder is config synchronisation. I have a main host used to work daily, a laptop when I'm not at home, and a macmini for specific usage. I sync my config files between all of them.
Why would I need to sync logs and version check ? These are related to each host. The config folder is made for app configuration, and data/state folders are made to store the state of the app on the host. The last folder is cache, where we can delete files without changing application state or configuration because it will be rebuilt on the next start. It even can be cleaned on each reboot.
So config is dotfiles
saved and shareable, state is fixed to one host, cache is volatile and deletable. That's the necessity of the data/state folders (set in $XDG_DATA_DIR or $XDG_STATE_DIR).
This is only an advice, easier to fix on early versions, but now it's you're decision.
from superfile.
Related Issues (20)
- File preview breaks superfile display HOT 2
- Search returns incorrect results HOT 3
- Select down does not seem to work HOT 1
- Metadata box could show output of "file" command HOT 3
- Cannot open any file HOT 1
- Better themelist wording HOT 5
- Big text file makes the program freeze for a while HOT 1
- Ability to copy the present working directory to your clipboard HOT 1
- File tagging support HOT 1
- Sorting by file properties HOT 1
- hotkeys c or f for creating files/folders not working (wiki) HOT 2
- crashes when it tries to preview a file (pdf in my case) HOT 9
- Add parameter `--print-last-dir` HOT 1
- Search on MacOS is not really a search HOT 3
- Pinned directory HOT 3
- How to install offline HOT 3
- Flickering on warp terminal HOT 1
- Load multiple directories in separate panes
- File panel movement: Page up/down
- enhancement: Custom file previews
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 superfile.