Giter VIP home page Giter VIP logo

flagit's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1580

FlagIt privides a simple way to flag lines with a set of signs.

Screenshot: http://sexylizard.org/images/flagit.png
(Icons from http://tango.freedesktop.org/Tango_Desktop_Project)

A configuration example is provided in the script header.

Usage:
g:Fi_Flags
	a dictionnary which describes the flags
	Synopsis:
	an item: '"flagName" : ["aUrlToTheImagePath", "aText, One or two character", uniq, "additionnal options"]'

	"flagName" : an uniq identifier
	"aUrlToTheImagePath" : The path to a pixmap. The flag will be drawn as a pixmap (if GUI avaible and g:Fi_OnlyText is 0).
	"aText" : One or two character. The flag will be drawn as a text (if GUI not avaible or g:Fi_OnlyText is 1)
	uniq : If 1, only one instance of this flag will be drawn, else multiple instance will be allowed
	"additionnal options" : options added to signs definition (cf. "sign define")

	example:
		let g:Fi_Flags = {"fixme" : ["/home/login/.vim/signs/fixme.png", "!!", 0, ""],
		\ "error" : ["/home/login/.vim/signs/error.png", "XX", 1, "texthl=ErrorMsg linehl=ErrorMsg"] }

g:Fi_ShowMenu
	If 1 and Gui avaible and g:Fi_OnlyText is 0, a menu will be added to the ToolBar.

g:Fi_OnlyText
	If 1, pixmap will not be used

FlagList
	List all avaible flags

FlagIt flagName [line number]
	Add a flag. If line number is not provided, current line is uses
	Il a flag is already presents, it will be removed

UnFlag [flagName]
	Remove all flags of type flagName
	If flagName is not provided,  remove all flags

FlagDemo
	Just a way to draw all kind of flags (for test)

TODO:
save flags (Modelines ? session ? dedicated file ?)

flagit's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.