Comments (9)
Thanks. You might like the new q
binding with this change too ( 2f23f9c ). I made commits in the wrong order.. this commit was made before the above referenced, but it makes more sense in the reverse order.
from eless.
@alphapapa I believe this issue is fixed. Feel free to re-open it if needed.
from eless.
Strange that you mention that :)
I am specifically disabling view-mode
if dired-mode
is detected. My main reason for doing that is because the view-mode-map
keys shadowed many useful bindings in dired-mode-map
. As dired-mode
is anyways a special-mode
, it is "read-only" by default (i.e. it is not a normal editable file buffer), there is no need to enable view-mode
.
I though have a feeling why this question was raised.. hitting q
does not seem to behave as a "less" substitute if the mode is dired-mode
. I have fixed that in 7a0f741.
(define-key dired-mode-map (kbd "q") (quote save-buffers-kill-emacs))
from eless.
Hm, well, what I mean is, if I'm thinking of eless as a "better less," then when I use it to view a file from its built-in dired mode, I would expect it to view that file in a read-only view mode, not regular Emacs editor mode. :)
I though have a feeling why this question was raised.. hitting q does not seem to behave as a "less" substitute if the mode is dired-mode. I have fixed that in 7a0f741.
That's a good idea.
from eless.
But the dired-mode is a read-only mode. It becomes "writeable" only when wdired is enabled.
from eless.
Sorry, what I mean is:
- User runs
eless .
, which opens a dired buffer. - User presses
RET
on a text file (not necessarilytxt
). - The file is now opened in normal, writable mode. This seems contrary to the purpose of
eless
, to view files, and to require manual intervention to disableread-only-mode
.
from eless.
Thanks for that explanation..
If I bind RET to dired-view-file
(bound to v
by default), would that solution work?
from eless.
Try updating to the latest e5f5363
from eless.
Thanks, that's great.
from eless.
Related Issues (20)
- Make eless run on emacs 22.1 HOT 17
- Get emacs binary name from an env var HOT 2
- Replace sed -r s/foo/bar/I with BSD compatible equivalent HOT 2
- Fix building using "make all" on macOS HOT 12
- Invalid regex: "Invalid regular expression" error on macOS HOT 15
- Test various eless usage scenarios on Travis
- man pages are not readable on macOS HOT 79
- Support Perl man pages HOT 2
- Default theme HOT 2
- Installation instructions HOT 17
- View multiple files in sequence with eless HOT 1
- Document how markdown-mode can be installed to use eless as CLI md viewer
- man page with colors HOT 18
- Make the test for info .. | eless work on Travis HOT 3
- Customize faces HOT 3
- `make install` fails without meaningful error message if makeinfo is not installed HOT 2
- Error when filename has parentheses HOT 3
- Reconsider emacs dependency for brew formula HOT 3
- How can I use eless in vterm? HOT 1
- passing updated man page
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 eless.