Anchor plugin

a.rb

Create anchor easily for tDiary.

Download

This plugin is included in tDiary standard plugins.

Usage

a(uri, name = nil)
a "http://www.hoge.com/diary/", "Hoge Diary"
a(key, option = "", name = nil)
a "home"
a "home", "20020329.html", "Here"
a("name|key:option")
a "key"
a "key:20020329.html"
a "key:20020329.html|Here"
a "Hoge Diary|http://www.hoge.com/diary/"
a "Hoge Diary|20020201.html#p01"  #=> Same as "my" plugin

Dictionary File

You can create/edit dictionary file from Preferences -> "Edit the dictionary file for the anchor plugin(a.rb)" The format is: key URL name. name is omittable. If you omit name, the key used as name.

e.g.)

tdiary http://www.tdiary.org/ tDiary Website
ruby-talk http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/
ruby-gnome2 http://ruby-gnome2.sourceforge.jp/hiki.cgi? Ruby-GNOME2

Options

Enable tlink plugin in this plugin

@options['a.tlink'] = true

the path of the dictionary file

Default location is @data_path/cache/a.dat.

@options['a.path'] = "/home/hoge/"

ChangeLog

2004-09-26 MUTOH Masao
  • plugin/a.rb: Support conf menu.
  • plugin/a/: Removed.
  • plugin/en/a.rb: Added.
2003-11-15 Masao Mutoh
  • Translate to English.
Last modified:2004/09/26 11:03:53
Keyword(s):
References:[YotaLab Storage]