Comments (12)
https://github.com/phillipberndt/pqiv/tree/sort-by-time is a simple solution for this.
from pqiv.
Thanks, this feature need to be in master
from pqiv.
It'll be. But I might do some changes before: While prepending the sort key to the displayed file name (which is used for sorting) is a very simple solution, I'm not really content with also displaying it in the info box. Also, it might be useful to rename the option to something like --sort-order=mtime
for forward compatibility.
from pqiv.
I ended up naming the option --sort-key=mtime
, but I implemented this now. I'll test this myself for some days and then pull the change to master!
from pqiv.
Brilliant!
from pqiv.
Merged to master.
from pqiv.
Doesn't work with --browse
, e.g
pqiv --browse --sort-key=mtime ./image.png
from pqiv.
Works fine here. If you're referring to image.png
being displayed first, then that's intentional. The files are sorted by mtime, but pqiv starts at the position of the image that was given as a parameter. If the order is wrong entirely, then could you provide an example, please? (The output of ls -lt --time-style="+[%s] (%Y-%m-%d %H:%M:%S)"
+ the actual order in pqiv should suffice.)
from pqiv.
ls -lt --time-style="+[%s] (%Y-%m-%d %H:%M:%S)"
-rw-r--r-- 1 shara shara 3041 [1441832654] (2015-09-10 00:04:14) fourth.png
-rw-r--r-- 1 shara shara 5430 [1441832570] (2015-09-10 00:02:50) third.png
-rw-r--r-- 1 shara shara 4793 [1441832530] (2015-09-10 00:02:10) second.png
-rw-r--r-- 1 shara shara 1802 [1441832216] (2015-09-09 23:56:56) first.png
pqiv --browse --sort-key=mtime ./first.png
Showed as:
[1/4] first
[2/4] third
[3/4] second
[4/4] fourth
pqiv --browse --sort-key=mtime ./second.png
Showed as:
[1/4] second
[2/4] first
[3/4] third
[4/4] fourth
from pqiv.
Here, I see them in order first, second, third, fourth and second, third, fourth, first, respectively.
Which GTK/glib versions, OS, and filesystem do you use?
from pqiv.
Ah. I guess I know what the problem might be: --sort-key
only sets the key that is used for sorting, but sorting still has to be explicitly enabled. Try adding --sort
to your command line.
(I have sort=1
in my configuration file, and I suppose you don't, right?)
from pqiv.
Yep, with --sort
key works perfect, thank you!
from pqiv.
Related Issues (20)
- [Feature request] Panning is unintuitive; 2 suggestions for it HOT 2
- pqiv freezes during slideshows on my mac HOT 1
- MPO (multi-picture JPEG) causes warning. HOT 1
- Unhelpful exit status
- Command incompatible with current file type HOT 1
- how change the window size like feh --geometry width x height HOT 1
- How to operate on a picture in an array of pictures in thumbnail mode?
- going fullscreen on multi monitors? HOT 3
- Question: How to define window size HOT 4
- Feature Request: separate borderless from transparent background
- background window not transparent? HOT 1
- Feature Request: save displayed image HOT 2
- Crash with a alignment trap issue when trying to view video files on a raspberry pi 2b HOT 4
- Slideshow interval fine for plain images and pdfs, not so much for animated gif / mp4 movies
- Control content of info box HOT 1
- Fix deprecation warnings HOT 1
- How can I bind a key to move file to a particular folder? HOT 1
- [bug] Sorting by name does not work if input is a directory HOT 2
- Use Command Output as Action Parameter HOT 1
- Release 2.13 HOT 10
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 pqiv.