Giter Club home page Giter Club logo

Comments (9)

kaushalmodi avatar kaushalmodi commented on August 18, 2024

This has been fixed few minutes back (943a513).

Earlier the limitation was the emacs -Q -nw could not received input from the pipe. man always sends data to the end process like less ($PAGER) via a pipe. So the same limitation applied.

This has now been fixed. Please git pull again and let me know if it works.

could be set to always use console or alway use GUI,

Now by default, eless always opens in terminal mode. If you like to force GUI mode, pass the -gui switch.

from eless.

itamarst avatar itamarst commented on August 18, 2024

With latest version for PAGER=eless man grep I am getting console emacs... but split into two panes.

from eless.

kaushalmodi avatar kaushalmodi commented on August 18, 2024

mangrep

As we cannot pass the -D flag for eless directly to man grep, set PAGER to eless -D.

  • I do not see man started with split windows. What emacs version are you on? I am on the latest build of emacs.
  • Here is the debug info I get:
> man grep
--> Input from pipe/file
    Output to terminal -->
var : -D
Raw Args      : -D
Emacs Args    : -nw
Pipe Contents : GREP(1)                                                                GREP(1)
<snip -- The whole of grep man page>
Temp File : /tmp/emacs-stdin-kmodi.5MB8HSR
first_line_piped_data = GREP(1)                                                                GREP(1)
Man Page = GREP(1)
Eless Command : emacs_Q_view_mode                          -nw                          --eval '(progn
                                   (man (downcase "GREP(1)"))
                                   (delete-window)
                                 )'
Args passed to emacs_Q_view_mode : -nw --eval (progn
                                   (man (downcase "GREP(1)"))
                                   (delete-window)
                                 )

from eless.

itamarst avatar itamarst commented on August 18, 2024

24.5.1. Running inside tmux. Here's output:

Temp File : /tmp/emacs-stdin-itamarst.w9IDUzm
first_line_piped_data = GREP(1)                                                                                     General Commands Manual                                                                                    GREP(1)
Man Page = GREP(1)
Eless Command : emacs_Q_view_mode                          -nw                          --eval '(progn
                                   (man (downcase "GREP(1)"))
                                   (delete-window)
                                 )'
Args in emacs_Q_view_mode : -nw --eval (progn
                                   (man (downcase "GREP(1)"))
                                   (delete-window)
                                 )

from eless.

kaushalmodi avatar kaushalmodi commented on August 18, 2024

24.5.1

I sorted of guessed that. The good news is that this issue has long been fixed. I would suggest that you upgrade to the recently released emacs 25.2.

I verified that the issue you mentioned happens on 24.5, but not on 25.1.

I'll still try fixing this so that it behaves the same for emacs 24.5 too.

from eless.

itamarst avatar itamarst commented on August 18, 2024

OK, thanks! I've been thinking about upgrading to latest Ubuntu, might be the excuse I need.

from eless.

kaushalmodi avatar kaushalmodi commented on August 18, 2024

Let me know if this fixes the issue for you: 57668b7

from eless.

itamarst avatar itamarst commented on August 18, 2024

Now it starts with two panes and then jumps into having only one after a moment. I should probably just upgrade to newer version of Emacs...

Thanks for the help, and for the neat tool!

from eless.

kaushalmodi avatar kaushalmodi commented on August 18, 2024

Now it starts with two panes and then jumps into having only one after a moment.

Yeah, it's just a workaround.. I'll come back to this if I find a better way of fixing this.

Thanks for the help, and for the neat tool!

Glad to help!

from eless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.