Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A high-configurable filter for TweetVim. https://github.com/basyura/TweetVim
VimL
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
autoload/tweetvim/filter
plugin
README.md
example_of_tweet_dict.txt

README.md

Advanced filter for TweetVim

TweetVim has a simple NG word filter as default filter. This plugin adds a high-configuable filter to TweetVim.

All you have to do is to define a dictionary-function, g:tweetvim_advanced_filter.executor. The function must have one argument and the argument is a dictionary of tweet information. And it must return 1 or 0 which represents if the tweet should be filtered or not.

An Example is following code.

let g:tweetvim_advanced_filter = {}

function! g:tweetvim_advanced_filter.executor(tweet)
    let source = matchstr(a:tweet.source, '^<a href="[^>]\+>\zs.\+\ze<\/a>$')
    return source == 'twittbot'
endfunction

This filter filters tweets whose client name is 'twittbot'. Example of a:tweet is available as example_of_tweet_dict.txt .

This plugin is distributed under MIT license.

Something went wrong with that request. Please try again.