Commit Graph

320 Commits

Author SHA1 Message Date
Julian Ospald 89b231a2c9
GTK: fix various glitches when opening tabs 2016-06-01 23:24:00 +02:00
Julian Ospald d14caf5269
GTK: don't allow new-tab middle-click on non-directories 2016-06-01 22:26:32 +02:00
Julian Ospald 9549b40745
GTK: implement newTab on middle-click 2016-06-01 22:02:18 +02:00
Julian Ospald 01c241a01e
GTK: remove tab label side-effect from refreshView'
This would cause bugs when newtab on middle-click is implemented,
since creating a new tab creates also a new view, but doesn't
change the current tab to that view. refreshView' would then
update that view with the information from the wrong tab.
2016-06-01 22:00:37 +02:00
Julian Ospald 7fef11ecd2
TRAVIS: fix cwd 2016-06-01 19:43:59 +02:00
Julian Ospald c2bbaa26cf
TRAVIS: build gh-pages 2016-06-01 19:35:00 +02:00
Julian Ospald 837333d8e2
Add gitter badge 2016-05-30 15:46:12 +02:00
Julian Ospald eeb19a5d2f
TRAVIS: add travis support 2016-05-30 14:51:10 +02:00
Julian Ospald 23d3775d37
CABAL: add source-repository section 2016-05-30 14:50:58 +02:00
Julian Ospald 5f82c63aa7
CABAL: remove unnecessary ghc-options
These also caused problems with 'cabal check'.
2016-05-30 14:50:44 +02:00
Julian Ospald 812bf2fa73
CABAL: fix version constraints 2016-05-30 14:50:14 +02:00
Julian Ospald cbfa2e31ca
Update HACKING.md 2016-05-30 14:45:29 +02:00
Julian Ospald c817ea1392
Not that experimental anymore 2016-05-30 14:45:01 +02:00
Julian Ospald 1831486f34
Minor cleanup 2016-05-29 14:02:26 +02:00
Julian Ospald 5aef692b4f
Fix build 2016-05-29 13:26:21 +02:00
Julian Ospald 274aabe1f3
GTK: make tabs reorderable and scrollable 2016-05-10 02:16:03 +02:00
Julian Ospald 8739ccc55f
Adjust to hpath-0.6.0 2016-05-10 02:05:05 +02:00
Julian Ospald aaa6dc7e48
Update .gitignore 2016-05-09 19:56:45 +02:00
Julian Ospald 3b2ee6dfd4
Adjust to new hpath API 2016-05-09 19:56:14 +02:00
Julian Ospald 41e2ae6131
Adjust to new HPath API 2016-05-09 16:37:02 +02:00
Julian Ospald 5fc77f6b24
Move to new HPath API 2016-05-09 14:41:57 +02:00
Julian Ospald dc457eb168
LIB/GTK: use throwIO instead of throw 2016-05-09 11:34:02 +02:00
Julian Ospald 173c4cbddd
GTK: minor cleanup 2016-05-09 00:52:22 +02:00
Julian Ospald a25f92e4ec
GTK: pre-set input field when renaming files 2016-05-09 00:45:47 +02:00
Julian Ospald 4254c80a64
TESTS: add missing utf8-string dependency 2016-05-09 00:21:54 +02:00
Julian Ospald ca9cf51e3c
TESTS: remove side effects from CopyFileOverwriteSpec
And also compare the results.
2016-05-09 00:21:18 +02:00
Julian Ospald 29f4dc67b6
TESTS: use specDir to refer to the test directories 2016-05-09 00:16:26 +02:00
Julian Ospald a91b4859d0
TESTS: fix getDirsFilesSpec 2016-05-08 23:46:05 +02:00
Julian Ospald c89d6b945c
TESTS: use hspec-discover 2016-05-08 23:45:51 +02:00
Julian Ospald 5b6a342a9e
LIB/TESTS: fix moveFileOverwrite and add tests
We must not allow to move a file to a directory, deleting that
directory and effectively changing the filetype.
2016-05-08 23:20:00 +02:00
Julian Ospald 8646a6338c
LIB/GTK: simplify error handling, add 'reactOnError' 2016-05-08 23:06:40 +02:00
Julian Ospald db16dcbb5d
GTK: fix renameF callback 2016-05-08 20:14:39 +02:00
Julian Ospald 3af8b36940
GTK: adjust to new LIB API and refactor file error handling
This restructures large parts of the GUI-wise error handling code
and makes it more fine-grained, so the user can react appropriately
to exceptions.
2016-05-08 20:14:30 +02:00
Julian Ospald 9c6cf51825
LIB: refactor FileOperation and related Errors
* move FileOperation/Copy/Move types to its own UtilTypes module
* remove runFileOp, since it's hard to really do the correct
  thing here for all possible exceptions... instead, let the
  GUI logic handle this
* introduce copyDirRecursiveOverwrite, copyFileOverwrite and
  easyCopyOverwrite
* use our own throwSameFile on functions to distinguish between
  "same file" and "file already exists"
* don't follow destination in copyFile* either
* improve throwSameFile, by examining device and file ids
* add isWritable
* improve documentation
* adjust and fix tests
2016-05-08 18:48:17 +02:00
Julian Ospald d58fd6e6f0
LIB: add copyFileOverwrite 2016-05-08 12:48:03 +02:00
Julian Ospald 1487351f29
TESTS: restructure files 2016-05-03 13:27:10 +02:00
Julian Ospald e56c345156
TESTS: general refactoring 2016-05-03 13:13:07 +02:00
Julian Ospald 37773383af
TESTS: refacotr 2016-05-03 12:44:05 +02:00
Julian Ospald 8b0e59faa7
LIB: improve documentation 2016-05-03 11:55:34 +02:00
Julian Ospald 6ec455b515
LIB: make deleteDirRecursive more robust
We now try 'deleteDir' first and only start recursive removal
if that fails.
2016-05-03 11:54:25 +02:00
Julian Ospald 4a86b4d2cf
TESTS: add missing deleteDirRecursiveSpec, minor cleanup 2016-05-03 11:53:46 +02:00
Julian Ospald 70270d60ba
TESTS: improve deleteDirSpec 2016-05-03 11:53:07 +02:00
Julian Ospald bd70b8751a
TESTS: add deleteDirRecursiveSpec 2016-05-03 11:52:36 +02:00
Julian Ospald 31fe08195f
TESTS: add deleteDirSpec 2016-05-03 11:19:13 +02:00
Julian Ospald c84512e3b3
TESTS: add deleteFileSpec 2016-05-02 23:10:22 +02:00
Julian Ospald 9a11e35be0
TESTS: add getDirsFilesSpec 2016-05-02 22:52:10 +02:00
Julian Ospald 7e8d465d81
LIB: improve documentation 2016-05-02 22:19:19 +02:00
Julian Ospald 526db2cbb7
GTK: fix opening symlinks that point to directories 2016-05-02 22:13:33 +02:00
Julian Ospald 5670b160d8
TESTS: add getFileTypeSpec 2016-05-02 22:13:19 +02:00
Julian Ospald ac41b053e3
LIB: fix legacy comment 2016-05-02 20:51:59 +02:00