GithubHelp home page GithubHelp logo

kookma / tw-shiraz Goto Github PK

View Code? Open in Web Editor NEW
75.0 7.0 8.0 28.26 MB

Shiraz is a small Tiddlywiki 5 plugin contains macros, stylesheets, templates, snippets, images, static tables, dynamic tables and acts as a starter kit.

Home Page: https://kookma.github.io/TW-Shiraz/

HTML 98.38% CSS 1.62%
tiddlywiki5 markup css3 tables macro plugin dynamic-table image tw5-plugin macros

tw-shiraz's Introduction

Shiraz

Shiraz is a small TW5 plugin contains several macros, stylesheets, templates, snippets and acts as a starter kit for Tiddlywiki.

Tutorial

Installation

For dtails on how install Shiraz plugin in your wiki, have a look at https://kookma.github.io/TW-Shiraz/#Install

Shiraz subplugins

Subplugins are addons extend the Shiraz features or simplify the use of Shiraz. These subplugins are available from shiraz GitHub repo (https://github.com/kookma/TW-Shiraz)

tw-shiraz's People

Contributors

atronoush avatar drevarr avatar fkohrt avatar kookma avatar talha131 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tw-shiraz's Issues

[SOLVED] Transposed tables

SOLVED

I was wondering if it is possible to have an enhancement on tables and dynamic-tables whereby Columns and rows are interchanged. I checked on stackoverflow and it is possible to do it using just css as per this post so I tried to give it a go but it only works partially.

I am assuming it is perhaps down to something minor but I am not knowledgable enough to work out what. Would you be able to either include it as a style or perhaps provide some guidance on this please?

[Feature Request] Provide Snippets

Hi Mohammad, I have been using your great plugins for a while, they help me a lot both in my public and private wikis!

I found one thing that may have a huge positive impact on your plugin libraries: Would you consider adding snippets to your plugin?

For example, this is the one added by myself into my wiki:
截屏2021-10-02 下午4 14 59
Then I can use your dynamic table more easily, without the need to open the document site and copy the code.
截屏2021-10-02 下午4 16 08

Your document site is beautiful and very clear, but I think for the most case, the API of your macro is clear enough, so we might not need to read the document, and can just figure out how to use these macros by looking at the fields.

So it will be much convenient if you bundle some snippets alongside with your plugins!


P.S. Gk0Wk is creating a code mirror plugin that will list tiddlers with $:/tags/TextEditor/Snippet tag, if the user types / in the editor. It will feel just like how notion and other modern note app works.
(base framework is in https://github.com/Gk0Wk/TW5-CodeMirror-Enhanced , he is working on snippet feature today, not complete yet)

DatePicker, Dates and Timezones.

I'm having an issue with using the Task Manager example, with due-dates and the dates provided by the date picker, and likely time representation in TiddlyWiki itself.

To start with, I have had issues in the past with using dates in TiddlyWiki without a timestamp. There are times of the day where the dates are off by a day. The solution to this was to always include the timestamp 12:00:00 in any date storage.

Using the Task Manager example, I created a new task with a due date for today (2022-02-01). TiddlyWiki is now showing it as 2022-01-31 and my filter based on date doesn't show it at all. This includes in the date picker as well as the due-date list in the dynamic table.

If I set the due date to tomorrow (2022-02-02), the dynamic table shows the due date as today.

I think the resolution much like my other date issues in TiddlyWiki is that the timestamp for 12:00:00 is required. I don't know however how to make the date picker understand that the timestamp is there, and to supply it when setting the date.

Allow DTable store field in tiddler instead of JSON

Now DTable will create a JSON just to store color info.
And despite my table and tiddlers are store in a private folder using FileSystemPath, this JSON still created in the default folder, resulted in a leak of privacy...

Screen Shot 2020-09-12 at 5 37 06 PM

Can DTable store this info in the checked todo tiddler itself, or allow me to auto-assign a Tag to JSON tiddler, so it can be detected by FileSystemPath and get stored in a private folder?

tbl-expand doesn't work for tiddlers which have '/' in their titles

Hi,
I'd like to report an issue.

The issue is using a dynamic table of Shiraz, and if there are tiddlers which have '/' in their titles, then these titles couldn't be expand by clicking the special column "tbl-expand".

For example, if a tiddler's title is "Foobar", then "tbl-expand" works. If I change this tiddler's title to "Foobar/", then "tbl-expand" stop working on it.

[IDEA] add the list-pages features to list-search macro

On the GG Eskha proposed:

Indeed when using the list-search macro, the filter option is different from the text input.
You define the filter in the macro-call, for instance "[tag[Definitions]]" (or use default filter "[tags[]]").
Then, the text you write into the text input narrow down the search to the filtered titles matching the text input.
For instance (on Tiddlywiki.com) with the filter option "[tag[Definitions]]" and the text "URI", you would only see two elements in the list: Data URI and URI.
In your use-case, the text input is replacing the filter option.

For other, I add a link to your well explained "demo/list-search-macro" tiddler:
Shiraz 2.1.2 — extended markups: styles, macros, images, tables (kookma.github.io)

To summarize, what would be my "ideal" behavior would be that an optional "entries-per-page" attribute exists in list-search!

Dynamic table shows " Delete all 232 records? " on sidebar

Expand stylesheets to cover th header cells

The macros in $:/plugins/.mr/shiraz/stylesheet/tables style only header cells tagged with thead > td, e.g.,

.thead-orange thead td{background-color: #FFA500; color: #ffffff;}

This is perfectly correct for the output from TW tables using header rows, e.g.,

| Header 1 |  Header 2 |h

I, however, wrote a macro which generated tables with header cells tagged with thead > th. When I attempted to style them with Shiraz stylesheets, the headers did not style correctly. I fixed the problem by altering the macro to use td tags for header cells.

If you extend your stylesheets to also support header cells which use th tags, it will improve the usability of your plugin for those producing tables from custom macros.

If you're okay with this change, I'm willing to do a pull request to implement it.

WikiText in dynamic table

Seems WikiText is not passed in the macro table-dynamic.

Step to reproduce this error.

In the https://kookma.github.io/TW-Shiraz/, create a new Tiddler with contents below (text field add).

<<table-dynamic filter:"[tag[sample]]" fields:"title text email created tags" stateTiddler:"exmp01" caption:"''Table 1. Dynamic table example''">>

It renders as below.
image

The column Text is not rendered.

What does stateTiddler mean?

I read through dynamic table examples, seems it is not used.

For example:

<$macrocall $name=table-dynamic filter="[tag[data]]" indexes="tbl-checkbox tbl-expand title name midterm homework final" stateTiddler="Houri" class="thead-dark" sortOp="sortan"/>

I search for Houri but not found a tiddler named this.

So is stateTiddler necessary?

Using another macro output as input for Shinraz plugin input

Hi I'm staring to learn Tiddlywiki. I have found your plugin and love it so far
Here I take one of your example and I want to display it in table

\define theme() primary secondary success warning danger info light dark

<table>
	<$list filter="[enlist<theme>]" variable=__curtheme__>
	<tr>
		<td><<__curtheme__>></td>
		<td><<badge type:"<<__curtheme__>>" src:"<<__curtheme__>> badge">></td>
	</tr>
	</$list>
</table>

When paste it to Tiddlywiki, you can see that only the text of badge is render, the badge itself isn't however.
Can you tell me this is because of Tiddlywiki mechanic, the plugin or my code wasn't proper.

Thank you very much!

link overrideClass

Hi Team,

I just install TW-Shiraz on my TW and some macros won't work.

For example:

<$link overrideClass="btn btn-secondary btn-sm" to="https://google.com">Google</$link>

TW-Shiraz: I see a button.

My TW: I see just text: Google.

What should I do to fix it?

Thank you in advance!

Suggestion: Package the Tutorial for easy import

Hey Mohammad! Thanks again for your great plugin! I was trying to easily drag over the entire tutorial into my own wiki, so I can: 1. refer it when I dont have internet in the future, 2. maybe even extend/edit it as I continue to learn/understand/etc.

To accomplish this right now, I'd have to filter by: [tag[demo]!tag[advanced]] and then import all of them, and then tag all of with Shiraz and Documentation, etc. etc.

So to be clear - it is currently possible and relatively straight forward. I was just thinking it could be made a bit easier by either: 1. packaging the docs directly with the plugin like Nico does for Projectify (discussing this idea in GG right now) or 2. Adding a single tag pill I can easily just grab to drag/drop over.

Thanks again!

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.