I use Wiki a lot for keeping short notes/memos about pretty much anything 
related to the host repo.
For cosmetic purposes when viewing from a Web browser these notes often contain 
<b> ... </b> or other such formatting tags.

However, doing most programming from the command-line, when I want to quickly 
look up some notes, I often do (f=fossil):

f wik exp PAGENAME

to get the related note displayed on the console screen.

However, these formatting tags are displayed cluttering the display (for some 
heavily formatted pages to the point of being unreadable).

My suggestion is when ‘wiki export’ command is used without the optional file 
(which would save wiki page to a file, as is), and the console is the target to 
filter out all those formatting tags.  A simple example:

The way it is now I would get: f wik exp "pinout"

<b>BDM pinout</b>

  *  PIN 1 - <b>BKGD</b>
  *  PIN 2 - <b>GND</b>
  *  PIN 3 - NC
  *  PIN 4 - <b>RESET</b>
  *  PIN 5 - NC
  *  PIN 6 - <b>VCC</b>

With the filter, a cleaner view:

BDM pinout

  *  PIN 1 - BKGD
  *  PIN 2 - GND
  *  PIN 3 - NC
  *  PIN 4 - RESET
  *  PIN 5 - NC
  *  PIN 6 – VCC

I currently use a Lua script to do this cleaning by piping the output through 
it, so I have to use something like:

f wik exp "pinout"  | cleanhtml

but it would be nice if FOSSIL could do this filtering on its own given you do 
not normally want to see those tags when displaying the wiki page on the 
console.  However, if there are tags inside a <verbatim> ... </verbatim> they 
should remain visible.

What do you think?

Thanks.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to