Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to preview to the original buffer? #72

Closed
zhaocai opened this issue Dec 15, 2011 · 6 comments
Closed

How to preview to the original buffer? #72

zhaocai opened this issue Dec 15, 2011 · 6 comments

Comments

@zhaocai
Copy link
Contributor

zhaocai commented Dec 15, 2011

Do you have a easy way to do -auto-preivew in the original buffer instead of a separate preview window? It is for the following mapping.
nnoremap <silent> / :<C-u>Unite -buffer-name=search -start-insert line<CR>

And there is one more thing: I am interested in creating a unite source to manage/bookmark 'TODO/FIXME/XXX'... tasks in source code or other files. I have read the code of some of the sources including line/colorscheme.... In general I understand. I am hoping if you have documents about the call flow of the overall framework to share...

And the files under vital. are they generated?

@Shougo
Copy link
Owner

Shougo commented Dec 16, 2011

Do you have a easy way to do -auto-preivew in the original buffer instead of a separate preview window? It is for the following mapping.

nnoremap / :Unite -buffer-name=search -start-insert line

nnoremap / :Unite -buffer-name=search -start-insert -auto-preview line

I am hoping if you have documents about the call flow of the overall framework to share...

Sorry, creating source documentation is in Japanese only. I'm busy now...

And the files under vital. are they generated?

This files is generated by vital.vim(https://github.com/ujihisa/vital.vim).

@zhaocai
Copy link
Contributor Author

zhaocai commented Dec 16, 2011

Do you have a easy way to do -auto-preivew in the original buffer instead of a separate preview window? It is for the following mapping.

nnoremap / :Unite -buffer-name=search -start-insert line

nnoremap / :Unite -buffer-name=search -start-insert -auto-preview line

Sorry, I guess I did not explain the problem cleanly. Let me try it again… (^^;;

What I want is to automatically scroll the original buffer to the corresponding open action position while I move cursor in the unite buffer. To do it manually, it is equal to:

  1. :Unite -no-quit line ( open the unite buffer )
  2. …(move cursor)…
  3. <CR> ( jump to the original buffer )
  4. :UniteResume ( back the unite buffer )
  5. repeat 2,3,4

I am hoping if you have documents about the call flow of the overall framework to share...

Sorry, creating source documentation is in Japanese only. I'm busy now…
That's OK. I know how hard it is to maintain the documents up to date. Can you share the Japanese documents it is convenient. I can read some Japanese

And the files under vital. are they generated?

This files is generated by vital.vim(https://github.com/ujihisa/vital.vim).


Reply to this email directly or view it on GitHub:
#72 (comment)

@Shougo
Copy link
Owner

Shougo commented Dec 16, 2011

What I want is to automatically scroll the original buffer to the corresponding open action position while I move cursor in the unite buffer. To do it manually, it is equal to:

You can create original 'preview' action using unite#custom_action().

@zhaocai
Copy link
Contributor Author

zhaocai commented Dec 16, 2011

A picture is worth a thousand words. Take the following clip as an example,

  1. The preview buffer is too small
  2. it is redundant
  3. it is unnecessary when the original buffer is available with better and bigger view

-auto-preview

@Shougo
Copy link
Owner

Shougo commented Dec 16, 2011

I understand your request.
But I can't implement it.
Because, your request behavior isn't compatible with previous preview action.
So I recommend you to create original action, and overwrite preview action using unite#custom_action().

@zhaocai
Copy link
Contributor Author

zhaocai commented Dec 16, 2011

I understand. maybe I should make a new action as scroll and auto-scroll for corresponding command option.

@Shougo Shougo closed this as completed Aug 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants