2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

130 Commits

Author SHA1 Message Date
chrox
d11dba0558 fix #1169 and #1170 2014-11-23 18:06:20 +08:00
Hans-Werner Hilse
ab44d1f7e3 fix item number distinction (plural forms) 2014-11-19 13:25:32 +01:00
Frans de Jonge
d701d9b198 First util.template encapsulated strings 2014-11-19 12:23:37 +01:00
Hans-Werner Hilse
3d03713cb1 implement case-insensitive sort, make default and configurable
This will convert any file name to lowercase before doing the comparison.
Note that this will only work for ASCII character range, a full Unicode
aware solution will be much more complicated. And in the end, file names
are byte arrays, not character strings ;-)

fixes #1183.
2014-11-16 19:27:31 +01:00
Hans-Werner Hilse
e031599c0a fix strcoll() workaround
The strcoll() workaround we had in place for Kobo devices was (or has
become) ineffective. We had set self.strcoll to nil on Kobo devices -
but this was the instance variable. Setting it to nil effectively makes
the instance variable vanish, so when trying to access it later, it
was not there and got looked up via the metatable - which had the original
reference. Setting it to nil had no effect whatsoever.

We simplify that approach and set the replacement function where before we
had set this to nil.

This is a partial fix for issue #1183 (and explains a comment in issue #686
which says that the old fix did not work).

However, to really fix #1183 - if we want to do so - we would need a collate
function that normalizes uppercase/lowercase before compare.
2014-11-16 19:15:24 +01:00
Hans-Werner Hilse
3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
2014-11-02 21:19:04 +01:00
chrox
a32991d898 add new sorting methods for file list in filemanager
Now files can be sorted by filename or last accessed time
2014-10-30 22:41:52 +08:00
chrox
97e7a90865 encode lfs.dir iterated file path to UTF-8 2014-09-25 22:33:43 +08:00
chrox
11a8a1dce6 show file size and directory items in filemanager 2014-09-10 13:27:15 +08:00
Qingping Hou
749c7f9939 fix(FM): remove redundant call to lfs.dir 2014-08-25 00:20:19 -04:00
chrox
2199da1713 disable string collating in Kobo devices
This should fix #686.
2014-08-21 13:55:17 +08:00
chrox
b7c7287bab remove more global variables 2014-08-14 19:52:30 +08:00
chrox
79ad1271d8 take care of directory that we don't have permission 2014-06-04 19:15:59 +08:00
chrox
ef84aff1db make ffi/util module local 2014-06-04 17:36:18 +08:00
chrox
91e3b9d293 sort file list respecting LC_COLLATE 2014-05-15 20:44:48 +08:00
chrox
92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
Paulo Matias
1982e1154f Refresh current path in filemanager after file operation
This behavior is more consistent when e.g. a file is moved to ".."
2014-01-22 16:23:23 -02:00
chrox
b3b0844f34 basic functionality on file copy/paste/cut/delete in filemanager
There file operations will popup when holding on file entries
in filemanager.
This should implement #244.
2014-01-18 23:17:13 +08:00
chrox
3eeba5389d fix show hidden flag not persistent between restart
This should fix bug reported in comments of #278.
2013-12-28 17:49:43 +08:00
chrox
42c5ae2ac0 add option to display file size in filemanager
file size is not shown by default
2013-12-19 23:20:16 +08:00
HW
ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
chrox
2b9b9bc9a5 add DSHOWHIDDENFILES in defaults.lua
this should fix #239
2013-10-13 15:50:44 +08:00
Qingping Hou
4c40fece74 add hidden file toggle 2013-08-25 00:00:06 -04:00
Paulo Matias
3d04925109 Remove FileChooser:compressPath, use util.realpath 2013-08-23 08:39:09 -03:00
Paulo Matias
e668379f6d Fix crash when trying to go to / on FM
Deals with more cases in FileChooser:compressPath, including `/mnt/..`.
2013-08-22 11:42:21 -03:00
Qingping Hou
c951eacc35 fix: reset current page on item_table switch for menu widget 2013-08-22 12:01:00 +08:00
Qingping Hou
cad8ddec92 disable path compress on relative path 2013-08-22 11:39:35 +08:00
Qingping Hou
aef2c4123e fix Menu widget initialization on inheritance bug in filechooser 2013-08-14 05:19:01 -04:00
chrox
6c4248251c compress paths like "test/pdf/../epub" into "test/epub" in FileChooser
This patch fixes Bug #107
2013-07-13 15:24:10 +08:00
Qingping Hou
10d980ed87 rearranged source tree 2013-03-13 01:18:53 +08:00