Giter Site home page Giter Site logo

thumbnail.vim's Introduction

A thumbnail-style buffer selector for Vim

Usage

:Thumbnail

thumbnail.vim

Concept

The basic concept is graphical vim. We should not stay still at old-style stage. The user interface is largely influenced by the new tab of Google Chrome. This plugin is also inspired by Launchpad of Mac and unite.vim.

Installation

Install with your favorite plugin manager.

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.

thumbnail.vim's People

Contributors

itchyny avatar mattn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mattn noscripter

thumbnail.vim's Issues

bits strange screen

I don't make sure the code to figure out why this problem occur.

  1. open syntax/thumbnail.vim
  2. :Thumbnail

test cases for update_visible_thumbnail and cursor

1: new

:Thumbnail
:new
:q
:new
:q

current status: fail (the first new)
(also check for :bel new)

2: vnew

:Thumbnail
:vnew
:q
:vnew
:q

current status: fail
(also check for :bel vnew)

3: new -> exchange

:Thumbnail
:new
<C-w><C-x>
<C-w><C-x>
<C-w><C-x>

current status: success

4: vnew -> exchange

:Thumbnail
:vnew
<C-w><C-x>
<C-w><C-x>
<C-w><C-x>

current status: success
(but powerline fails)

5: unite.vim

:Thumbnail
:Unite buffer
<Plug>(unite_exit)

current status: fail

6: sp

:Thumbnail
:sp
:q

current status: fail

7: vsp

:Thumbnail
:vsp
:q

current status: fail

filtering UI

フィルターしていくとサムネイルが減っていく系

buffer filetype white list or black list (include nobuflisted buffer?)

現状buflistedで締め出している.

基本方針

https://twitter.com/itchyny/status/314348381713620992
nobuflistedっていうのは, 意味的に「バッファーリストに入れません」って宣言しているわけで, それをバッファーセレクタが入れるのは気持ち悪い.

Unite bufferで表示されないものは, 別に入れなくてもいい気がする.

あまり configurable にしたくない. 今でもケースが多いのに, どんどん多くなるのが大変だから.

buflistedでフィルターした当初の目的

unite.vimの閉じたバッファーを締め出す.
uniteならみたいなspecificな処理はしたくない.
ブラックリストとしてuniteを登録するのも -1.
nobuflistedなら, バッファー選択できなくてもいいや.

問題

  • helpが入らない
  • twitvimが入らないらしい
    nobuflistedだから.

help → これはホワイトリストとしてソースに書いても良いかもしれない
でも, Unite bufferでも選択できない → サムネイルいるのか?

twitvim → これはnobuflistedなのが悪いと思う.
nobuflistedに意図的にしているということは, 「バッファーのリスト」に載せるつもりが無いということ. Unite bufferでも選択できないと思う.
ユーザーが au FileType twitvim setlocal buflistedで対応できること.
Unite bufferは :ls を使ってるっぽい.

ブラックリスト, ホワイトリスト

このプラグインに, 他のプラグインに依存するものを書きたくない.
デフォルトでthumbnail_white_list = [] として, thumbnail_white_list = [ 'help', 'twitvim' ]とユーザーが.vimrcに書くスタイル?
あまり configurable にしたくない.

Thumbnail! でnobuflistedも入れるという案

こんなことにこれを割り当てていいのか?
今後これを引きずっていくのが大変そう.
じゃぁ Thumbnail --include-nobuflisted みたいに?
→ uniteとかみたいにオプション地獄, これはしたくない. 書くのも大変そう. 動作確認しなきゃいけないケースがどんどん増える.

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.