maphew

Fossil SCM

Friday, November 30, 2018

Settings

editor

"C:\Program Files\Notepad++\notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*"

gdiff

"C:\Program Files (x86)\WinMerge\WinMergeU.exe"

-> Admin -> Configuration. There is a “Index Page

From <https://stackoverflow.com/questions/17452809/using-fossil-embedded-documents>

Mine: https://..../a/setup_config

Index page: /doc/trunk/blog/index-blog.md

 

Sources

…an approach similar to what I have done for Notepad++ in the past, i.e.

"c:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*"

From <https://stackoverflow.com/questions/30024353/how-to-use-visual-studio-code-as-default-editor-for-git>

------

If you want to use a GUI differ such as WinMerge instead of Fossil's text-based differ: Fill the "gdiff-command" line to point to the application you wish to use when calling "fossil gdiff". If there are spaces in the path, use quotes, eg. fossil settings gdiff-command --global "\"C:\Program Files\WinMerge\WinMergeU.exe\""

From <http://www.fredshack.com/docs/fossil.html>

-------------

would it be possible to show backlinks also for wiki pages somewhere in the header or footer of the wiki page? This would make the wiki functionality even more attractive and closer to the original wiki idea.

From <https://fossil-scm.org/forum/forumpost/09834d5477b88e33b14d59da3850aefbf5616ae233a903a184e9343aa1d74abc>

----------

Fossil wiki syntax allows some HTML, so something like this:

   <img src="/raw?ci=trunk&filename=path/to/my.png">

will work. Adjust the ci and filename parameters to suit; both are required. Beware that you have to deal with the default CSP when linking to images like this.

From <https://fossil-scm.org/forum/forumpost/f406a9009b98d513d479226660a7edd66fdfb9967185dbc90c676b8e2ece56a4>

 

As well as explicitly named in-repo files, the Fossil wiki feature allows attachments, which you can identify by artifact ID, which can also be referenced by artifact ID in /raw or /file URLs.

From <https://fossil-scm.org/forum/forumpost/f406a9009b98d513d479226660a7edd66fdfb9967185dbc90c676b8e2ece56a4>

 

index page, table of contents

Fossil doesn't have built means of making an index page. So let's prototype one with python, and then maybe just maybe figure out how to that in C or TH1 for mainline inclusion.

for *.md recursive:
	get "# title"
	get next nn characters
	find end of doc:
		get text to preceeding "^---*" as my_page.meta
	append entries(my_page.entry)

with "index.md":
	for entries:
		write my_page.entry + "[…][path/to/my_page.md]"
		write spacing
		return index.md
	render index.md

with "blog_index.md":
	sort my_page.meta.date
	for sorted *.entry:
		write my_page.meta.date
		write my_page.entry + "[…][path/to/my_page.md]"
		write spacing
		return blog_index.md
	render blog_index.md

The "/admin_th1" page:

Run raw TH1 commands using the web interface. If Tcl integration was enabled at compile-time and the "tcl" setting is enabled, Tcl commands may be run as well. Requires Admin privilege.

http://localhost:8081/admin_th1

From <https://fossil-scm.org/home/help?cmd=/admin_th1>