Comments (1)
Your opening statement here is "At the moment they are not colored at all" which is not correct. Error messages are colored according to the operation (i.e. remove, rename, copy). You then say "Usually error messages are printed in red" which is not correct either, 99.9% of Linux command line apps do not use color at all.
The philosophy I have chosen for this app is:
- Color is used to distinguish the operation, i..e. remove = red, rename = yellow, copy = green.
- Errors are output in the same color as the operation they pertain to but all errors are printed with an "ERROR:" preface in the text message and the process return code is set to error as expected for all well-behaving Linux command line apps.
I'm sorry but I think the above is better than any of the alternatives you propose.
Regarding your second issue here, I disagree that the error is not clear. If I am trying to rename afile
to adir/afile1
but adir
is not writable by me then the error is:
Create dir for afile ERROR: Can not write in adir
Fundamentally the error is that you can not write in adir
and that is very clearly stated. Whether the original file name that you are changing from, or the target file name you are changing to, are printed in the error message is merely opinion and plenty would disagree with you. We know the original file name must be unique but we don't know that for the target file name so that is why the original name is output.
The issue about columns for file names is irrelevant here given you have raised issue #14 about it.
from edir.
Related Issues (20)
- Sort directories before files HOT 2
- [Enhancement] Add support for trash-d HOT 1
- Handle missing permissions in a smart way HOT 1
- Provide columnized output for better readability HOT 2
- Great work. HOT 2
- Allow cross-device (cross-filesystem) moving HOT 3
- Feature: make filenames more aligned for block-visual mode HOT 3
- Option to preview + confirm changes before they're actually executed? HOT 5
- Editor argument throws error HOT 3
- Fails on Windows with an error about no such file or directory '/dev/tty' HOT 11
- Suggestion: change the default `.sh` suffix for the temporary file HOT 3
- when copying, subdirectories are not created HOT 2
- creating new empty files and directories HOT 4
- Option for editing symlinks HOT 1
- Allow copying files HOT 3
- Add to pip HOT 2
- [Question] Motivation for changing temp file write/read in 515f2e5 HOT 3
- [BUG] Renaming a directory and putting files into the new name HOT 4
- Can't delete files with spaces in their names using trash-put HOT 1
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 edir.