Commit Graph

87 Commits (de6f2e84a38c071aee0e24e3836f2c47950cf20d)

Author SHA1 Message Date
Zijie He 6eeac33ad1 *.sdr folders are not excluded in folder item count
Bug #1966
8 years ago
Qingping Hou 6a6469fa09 more luacheck fixes 8 years ago
Qingping Hou 6fe9f7870b chore: more luacheck fixes 8 years ago
frankyifei f7142cfcbe fix filechooser crash on entering folder contains nil symlink 9 years ago
chrox f22a53affd screen orientation won't change when going into filemanager
and filemanager remembers screen orientation at exit
This should fix #1338.
9 years ago
chrox 0a06041cd9 fix calculation of widget height of filechooser
the height of filechooser is provided when creating filechooser
widget since there may be no title as in filemanger which needs
a special title widget to contain filemanger menu.
10 years ago
chrox 67693367b9 init width and height of filechooser widget during init
so that everytime a filechooser is inited right dimension
size is used.
10 years ago
chrox d11dba0558 fix #1169 and #1170 10 years ago
Hans-Werner Hilse ab44d1f7e3 fix item number distinction (plural forms) 10 years ago
Frans de Jonge d701d9b198 First util.template encapsulated strings 10 years ago
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.
10 years ago
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.
10 years ago
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.
10 years ago
chrox a32991d898 add new sorting methods for file list in filemanager
Now files can be sorted by filename or last accessed time
10 years ago
chrox 97e7a90865 encode lfs.dir iterated file path to UTF-8 10 years ago
chrox 11a8a1dce6 show file size and directory items in filemanager 10 years ago
Qingping Hou 749c7f9939 fix(FM): remove redundant call to lfs.dir 10 years ago
chrox 2199da1713 disable string collating in Kobo devices
This should fix #686.
10 years ago
chrox b7c7287bab remove more global variables 10 years ago
chrox 79ad1271d8 take care of directory that we don't have permission 10 years ago
chrox ef84aff1db make ffi/util module local 10 years ago
chrox 91e3b9d293 sort file list respecting LC_COLLATE 10 years ago
chrox 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
Paulo Matias 1982e1154f Refresh current path in filemanager after file operation
This behavior is more consistent when e.g. a file is moved to ".."
10 years ago
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.
10 years ago
chrox 3eeba5389d fix show hidden flag not persistent between restart
This should fix bug reported in comments of #278.
11 years ago
chrox 42c5ae2ac0 add option to display file size in filemanager
file size is not shown by default
11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox 2b9b9bc9a5 add DSHOWHIDDENFILES in defaults.lua
this should fix #239
11 years ago
Qingping Hou 4c40fece74 add hidden file toggle 11 years ago
Paulo Matias 3d04925109 Remove FileChooser:compressPath, use util.realpath 11 years ago
Paulo Matias e668379f6d Fix crash when trying to go to / on FM
Deals with more cases in FileChooser:compressPath, including `/mnt/..`.
11 years ago
Qingping Hou c951eacc35 fix: reset current page on item_table switch for menu widget 11 years ago
Qingping Hou cad8ddec92 disable path compress on relative path 11 years ago
Qingping Hou aef2c4123e fix Menu widget initialization on inheritance bug in filechooser 11 years ago
chrox 6c4248251c compress paths like "test/pdf/../epub" into "test/epub" in FileChooser
This patch fixes Bug #107
11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago