Code Monkey home page Code Monkey logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Looks like this is the Vim scripting limitation mentioned in installation guide

Original comment by [email protected] on 21 Jan 2011 at 10:36

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Yeah. This is not possible to fix without adding new functionality to Vim 
itself.

It is a very important feature, however. I'm planning on submitting a Vim patch 
to fix this in the future. So leaving this ticket open.

Original comment by [email protected] on 22 Jan 2011 at 2:25

  • Changed state: Accepted

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
I was wondering, if we told Vim to visit Insert mode in the Conque window, 
would that be enough to cause a refresh?

I played around with some code like this:

function! MyTest()
  let l:startWin = winnr()    " Remember which window we started in
  wincmd b                    " Go to my Conque window (last window on screen)
  normal "a\<Esc>"            " Enter Insert mode and leave again
  exec l:startWin."wincmd w"  " Return to start window
endfunction

Unfortunately it didn't seem to work.  Perhaps the user must sit a while in 
Insert mode, before the update occurs.

So then I tried this:

function! MyTest()
  let s:startWin = winnr()
  wincmd b
  normal "a"
  " After some relaxation in insert mode in the Conque window,
  " call EndTest to put us back where we were.
  augroup Test
    autocmd CursorHoldI * call EndTest()
  augroup END
endfunction

function! EndTest()
  augroup Test
    autocmd!        " Clear the autocmd we created above
  augroup END
  normal "\<Esc>"
  exec s:startWin."wincmd w"
endfunction

This actually worked!  Conque updated, and I was left in my original window!  
Although it did not return to Normal mode afterwards, but that may be my other 
scripts interfering.  (Also of note, it did not wait updatetime before firing 
CursorHoldI, it fired immediately, which is fine for our purposes.)

Original comment by [email protected] on 7 Nov 2011 at 12:30

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Ah, instead of normal "\<Esc>" (which didn't work) we can successfully leave 
insert mode with stopinsert.  I will see if I can turn this into a patch...

Original comment by [email protected] on 12 Nov 2011 at 11:21

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Has this been released into a patch?
I'm trying to use the "Make" utility and it would be nice to see when it's done.

Original comment by [email protected] on 20 Feb 2012 at 10:05

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Forget the above madness.  In autoload/conque_term.vim, find the function 
conque_term#on_blur, and remove or disable the following lines:

    " turn off subprocess fast polling
    if exists('b:ConqueTerm_Var')
        sil exe s:py . ' ' . b:ConqueTerm_Var . '.idle()'
    endif

I just added the check: && g:ConqueTerm_ReadUnfocused == 0

Does that work for you?  (I have made some other changes.)

I have a new problem now!  When full, the unfocused window does not autoscroll 
to the bottom as new lines is added, so I can't read them until I visit it!

Original comment by [email protected] on 10 Jun 2012 at 12:29

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Fixed that!  To force scrolling, I went into term_obj.read(), switched focus to 
the conqueterm window with:

  call conque_term#get_instance().focus()

then to make the scrolling happen, set:

  set_cursor = True

Afterwards, I had to refocus the original window and restore insert/normal 
mode.  Somehow it even puts the cursor back when it was on the last space!

My script becomes: http://hwi.ath.cx/code/home/.vim/autoload/conque_term.vim

Original comment by [email protected] on 10 Jun 2012 at 11:02

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
I've tried to download your version a few times but haven't been able to 
connect to "hwi.ath.cx". Can you attach it to this issue?

Thanks.

Original comment by [email protected] on 12 Jun 2012 at 10:26

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Sorry about that.  I fear ISPs are not giving us the full Internet.  =(

Here are my files from autoload/ and plugin/, I hope they contain all the 
relevant changes.

The changes I made to conque_term#read_all() may be important!

My apologies there are other additions to the code which are irrelevant to this 
issue.

(Another feature I have added uses the variable insertModeWhenEntered to 
remember and restore the previous mode when leaving a conqueterm that forced 
insert mode.)

Original comment by [email protected] on 20 Jun 2012 at 6:49

Attachments:

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Hi, Joey.

I'm seeing the same scrolling issue even with your changes in comment #9 as I 
do with the standard Conque release.

Can you verify that nothing else is required to make your changes work?

Original comment by [email protected] on 9 Apr 2014 at 10:17

from conque.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Hmmm I found another file in my plugin folder.  Hope this helps!

Original comment by [email protected] on 20 Apr 2014 at 10:02

Attachments:

from conque.

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.