Jeremy Ruston
5b0c923a82
Merge branch 'master' into colour-improvements
2026-01-08 11:23:43 +00:00
Mario Pietsch
86d61e09bd
Edit-text widget: rows parameter takes precedence, CM accepts rows now ( #9454 )
...
* edit-text rows parameter takes precedence, CM accepts rows now
* Add changenote for PR
* Clarify edit-text widget rows parameter precedence
2025-12-17 15:03:23 +00:00
Jeremy Ruston
f9721b029e
Merge branch 'master' into colour-improvements
2025-08-06 10:30:30 +01:00
Leilei332
cd480de280
Bump codemirror 5 plugin version to 5.65.19 ( #9114 )
...
* Bump codemirror 5 plugin version to 5.65.19
* Update autocomplete
* Update closebrackets
* Update fullscreen
* Update keymap
* Update modes
* Update search
* Update trailingspace
* Fix broken markdown mode
* Add all codemirror plugins to codemirrordemo edition
2025-06-28 16:18:42 +01:00
Jeremy Ruston
e86eb28890
Merge branch 'master' into colour-improvements
2025-03-21 17:24:19 +00:00
Mario Pietsch
8aa558eb2c
Remove module function wrapper and add matching configurations for dprint and eslint ( #7596 )
...
* remove blks first try
* dprint.json seems to be OK, some forgotten functions
* add some more space-after-keyword settings
* server remove blks
* add **/files to dprint exclude
* dprint.js fixes a typo
* add boot.js and bootprefix.js to dprint exclude
* dprint change dprint.json
* add dprint fmt as script
* remove jslint comments
* fix whitespace
* fix whitespace
* remove function-wrapper from geospatial plugin
* fix whitespace
* add function wrapper to dyannotate-startup
* remove dpring.json
2025-03-21 17:22:57 +00:00
Jeremy Ruston
92b7819259
Fix Codemirror colour palette fallbacks
2025-02-10 17:01:37 +00:00
Jeremy Ruston
bd4b3e4107
Fix some old-style palette references
2025-01-08 16:00:29 +00:00
Leilei332
e93515f32a
Fix style of codemirror settings page ( #8600 )
...
A small fix to make its style the same as the TiddlyWiki settings page.
2024-09-15 11:49:33 +02:00
Leilei332
c225013d1a
Add type attribute to input fields in control panel ( #8518 )
2024-08-21 11:16:13 +01:00
Jeremy Ruston
7a60e7c93e
More rename Jermolene/TiddlyWiki5 to TiddlyWiki/TiddlyWiki5
...
These are the changes that have to be done on "master"
2024-07-25 17:44:52 +01:00
Jeremy Ruston
5aa3646df5
Add plugin stability badges ( #8198 )
...
* Initial Commit
* Fix plugin library URL
* Need to set plugin library location for prerelease
* Styling tweaks
* Docs
* Add tests that the core plugins all have a valid stability field
2024-05-21 11:22:39 +01:00
Simon Huber
902c7f55ba
Fix overflow issue of codemirror editor within grid container ( #7794 )
...
* fix overflow issue of codemirror editor within grid container
* tiddler preview needs overflow: auto, too
2023-10-26 11:43:24 +01:00
Mario Pietsch
16ef1d84cd
Change arrow-function to function call for HTA ( #7552 )
2023-06-28 09:54:27 +01:00
jeremy@jermolene.com
a05302da10
Revert "Bidirectional text improvements ( #4541 )"
...
This reverts commit f90eb386ae .
2023-06-21 17:13:33 +01:00
Jeremy Ruston
f90eb386ae
Bidirectional text improvements ( #4541 )
...
* Add support for \dir pragma
* Add "dir" attribute to reveal, edit, edit-text and edit-codemirror widgets
* Add $:/config/DefaultTextDirection hidden setting
* Revert accidentally commited test data
This reverts some of commit b83c1d160f .
* Remove Codemirror plugin from Prerelease
Makes it easier to test things
* Fix framed text editor directionality in Firefox
* Add direction attribute for edit body template
* Missed closing brace
* Add docs for \dir pragma
* Templates should set text direction from a variable, not a transclusion
* Updates to framed.js in the light of PRs that have been merged since this
* Restore whitespace trim
* Docs dates
* Fix typo
* Clarify docs
2023-06-13 16:36:07 +01:00
GameDungeon
578e883bdc
Add Tabs To Settings ( #7524 )
...
* Move to Core
* List-Before
* Update core/ui/ControlPanel/Settings.tid
* Proper list-before
2023-06-11 10:28:52 +01:00
btheado
74e0619782
Protect codemirror.css from wikitext parsing, otherwise 'CodeMirror' is considered a wikilink ( #7500 )
2023-05-27 18:22:31 +02:00
Saq Imtiaz
5bce35d90b
Fix: add twEditor attribute to paste events handled by codemirror ( #7281 )
2023-02-28 08:35:15 +00:00
cdruan
0c328a1696
Revamp markdown plugin ( #6528 )
...
* Rename markdown to markdown-legacy
* Change how default renderWikiTextPragma value is displayed
To prevent out-of-sync, dynamically display the default value of
renderWikiTextPragma from the shadow tiddler instead of hard coding
the text in the "usage.tid".
* Repackage remarkable-based markdown plugin as markdown-legacy
- Rename plugin title to $:/plugins/tiddlywiki/markdown-legacy
- Add support for "text/markdown" MIME type and set that as the default
when creating new markdown tiddlers
* Create new markdown plugin
* add support to text/markdown MIME type
* remove linkify and linkNewWindow config options
- linkify feature should be controlled by "extlink" TW parser rule;
enabling markdown's linkify option will interfere with parsing
- remove the possibility to open external links in the same tab/window
to match TW's behavior
* Ignore latex-parser wikirule in rednerWikiTextPragma
* Prevent camel-case link text from generating a link
* Update editions/markdowndemo
* Produce better parse tree
* Improve markdown/tiddlywiki integration
- widget block should not interrupt paragraph
- ignore tw-syntax links inside markdown-syntax links
- remove repeated renderWikiTextPragma parsing
- more efficient findNextMatch when examining tw rules
* Update user docs
* Replace includes() with indexOf() for legacy browsers
2023-01-14 09:49:04 +00:00
Maurycy Zarzycki
f33c7e2aef
Allow global keyboard shortcuts to override all other shortcuts by providing a special field ( #6735 )
...
* allow global keyboard shortcuts to override all other shortcuts by providing a special field
* rework the global shortcuts taking priority
* replace bool option with options object in KeyboardManager's keydown handler
* update keyboard shortcut documentation to add information about the new priority setting
* add support for priority global keyboard shortcuts to code mirror
* update the feature's docs to point out it was/will be introduced in 5.2.4
* rollback unnecessary change
2022-10-07 17:31:04 +01:00
Saq Imtiaz
75aabcce64
Fix for CodeMirror issues with drop events in Chrome 96 ( #6278 )
...
* fix: handle drag events ourselves in chrome when it adds pseudo file objects to the event
* fix: corrected typo in comment
* fix: coding style
* fix: formatting and remove comments
2021-11-28 14:46:27 +00:00
jeremy@jermolene.com
2af632a46d
Don't use CodeMirror unless in the browser
...
Avoids crashes when rendering static tiddlers under Node.js that include edit widgets with CodeMirror.
The tiddler "SampleWindowTemplate" in 05606f72ad was triggering a build error in https://github.com/Jermolene/TiddlyWiki5/runs/4310561088?check_suite_focus=true#step:6:41
2021-11-24 10:41:38 +00:00
Saq Imtiaz
b5c81d2721
Provide actionValue variable to actions fired by EditTextWidget ( #6145 )
...
* feat: provide actionValue variable to actions fired by EditTextWidget
* also extend CodeMirror engine to set actionValue variable when invoking actions
2021-10-28 19:15:50 +01:00
Saq Imtiaz
06318b7617
Pass reference to widget to CodeMirror ( #5790 )
2021-06-14 16:46:39 +01:00
Saq Imtiaz
05d38054c8
Drag and drop images in the editor to import and insert ( #5699 )
...
* Merge
* Clean up
* More clean up
* Ensure image import works when type is not set, clean up post import actions
* Removed spurious new line
* For non image files insert a tiddler link
* Added documentation for new settings and features
2021-05-19 21:52:43 +01:00
Simon Huber
8798ebadbd
Add foreground color to CodeMirror selections and fix #5272 ( #5266 )
...
* Add foreground color to CodeMirror selections
* Use default selection background if tiddler-editor-background matches selection-background
2020-12-13 11:40:57 +00:00
Simon Huber
90f05295a2
Add missing config options to ControlPanel->Settings->CodeMirror ( #5229 )
...
* Create cursorBlinkRate.tid
* Update config-language.multids
* Create indentUnit.tid
* Create indentWithTabs.tid
* Create smartIndent.tid
* Create tabSize.tid
2020-12-07 14:43:44 +00:00
Simon Huber
e8815b79ff
Update CodeMirror Dialog to always have a background color ( #5217 )
2020-12-06 17:21:35 +00:00
Simon Huber
b2d270a7e8
CodeMirror: Make colored selections based on palette work in chrome, too ( #5215 )
...
* Make colored selections based on palette work in chrome, too
* Update styles.tid
2020-12-06 13:00:19 +00:00
Simon Huber
a3a7d6450d
CodeMirror: Ensure linenumber-gutter has a right border ( #5212 )
...
* Ensure linenumber-gutter has a right border
* Update GruvBoxDark.tid
* Update Nord.tid
2020-12-06 08:56:06 +00:00
Simon Huber
d957b3e4e6
Update CodeMirror styles to set selection colors based on foreground contrastcolour ( #5200 )
...
* Update styles.tid
* Update styles.tid
* Update styles.tid
2020-12-05 16:37:50 +00:00
Simon Huber
ae5d78b4dd
Update codemirror styles ( #5198 )
2020-12-04 19:14:59 +00:00
Simon Huber
9d5babc248
Bump CodeMirror plugin version ( #5184 )
2020-12-02 21:12:56 +00:00
Simon Huber
f0eba7fdc6
Re-add minified codemirror, without minification bug ( #5180 )
2020-12-02 16:55:37 +00:00
Simon Huber
9871c1a6a9
Small tweak for codemirror selected-linenumber ( #5181 )
2020-12-02 16:54:36 +00:00
Simon Huber
a1ef66ec6d
Better readability for codemirror linenumbers + CupertinoDark muted-foreground better contrast ( #5164 )
...
* Update styles.tid
* Update CupertinoDark.tid
2020-12-02 12:21:23 +00:00
Simon Huber
c3055f92a9
Don't minify codemirror.js ( #5173 )
2020-12-01 20:55:22 +00:00
Simon Huber
cc1f32067f
Update CodeMirror to 5.58.3 - fix vim-mode cursor invisible ( #5172 )
...
* Update codemirror to v5.58.3
* Update jump-to-line.js
* Update search.js
2020-12-01 18:11:40 +00:00
Simon Huber
09d7a77f1b
Add default "tiddlywiki" styles to CodeMirror and Highlight.js ( #5128 )
...
* Update styles.tid
* Update styles.tid
* Update theme.tid
* Delete cm-theme-tiddlywiki.tid
2020-11-28 14:07:12 +00:00
Simon Huber
b69b84b38e
Update core "tabs" macros to use explicitState ( #4985 )
...
* Update ControlPanel.tid
* Update Advanced.tid
* Update Appearance.tid
* Update Info.tid
* Update AddPlugins.tid
* Update Plugins.tid
* Update Saving.tid
* Update Toolbars.tid
* Update Plugins.tid
* Update More.tid
* Update TiddlerInfo.tid
* Update tabs.tid
* Update settings.tid
* Update ControlPanel.tid
* Update Advanced.tid
* Update Appearance.tid
* Update Info.tid
* Update AddPlugins.tid
* Update Plugins.tid
* Update Saving.tid
* Update Toolbars.tid
* Update Plugins.tid
* Update More.tid
* Update tabs.tid
* Update settings.tid
* Update TiddlerInfo.tid
* Update AdvancedSearch.tid
* Update Filter.tid
* Update Shadows.tid
* Update Standard.tid
* Update System.tid
2020-11-08 09:31:39 +00:00
Simon Huber
769ffa19b7
Update CodeMirror plugins to v5.58.2 ( #4950 )
...
* Update codemirror.js to 5.58.2
* Update codemirror.css to 5.58.2
* Update activeline.js to 5.58.2
* Update dialog.js to 5.58.2
* Update jump-to-line.js to 5.58.2
* Update search.js to 5.58.2
* Update searchcursor.js to 5.58.2
* Update xml.js to 5.58.2
* Update show-hint.js to 5.58.2
* Update show-hint.css to 5.58.2
* Update javascript-hint.js to 5.58.2
* Update xml-hint.js to 5.58.2
* Update html-hint.js to 5.58.2
* Update css-hint.js to 5.58.2
* Update anyword-hint.js to 5.58.2
* Update closebrackets.js to 5.58.2
* Update matchbrackets.js to 5.58.2
* Update closetag.js to 5.58.2
* Update xml-fold.js to 5.58.2
* Update fullscreen.js to 5.58.2
* Update emacs.js to 5.58.2
* Update sublime.js to 5.58.2
* Update comment.js to 5.58.2
* Update vim.js to 5.58.2
* Update css.js to 5.58.2
* Update multiplex.js to 5.58.2
* Update htmlembedded.js to 5.58.2
* Update htmlmixed.js to 5.58.2
* Update javascript.js to 5.58.2
* Update markdown.js to 5.58.2
* Update markdown.js
* Update readme.tid
* Update markdown.js
2020-11-01 11:10:00 +00:00
Simon Huber
0d2df34c58
Keyboard-driven dropdown inputs ( #4725 )
...
* Add shortcut descriptions to Misc.multids
* Update framed.js
* Update simple.js
* Add inputActions and refreshTitle to factory.js
* Add inputActions and refreshTitle to edit.js
* Update DefaultSearchResultList.tid
* Update search.tid
* Update ShortcutInfo.multids
* Update shortcuts.multids
* Create keyboard-driven-input.tid
* Update tag-picker.tid
* Create keyboard-driven-input_Macro.tid
* Update EditTextWidget.tid
* Update EditWidget.tid
* Update engine.js
* Update base.tid
* Use primaryListFilter, secondaryListFilter, primaryList and secondaryList
* Update tag-picker.tid
* Update search.tid
* Update DefaultSearchResultList.tid
* Update keyboard-driven-input_Macro.tid
* Fix typo udpate -> update
* Update framed.js
2020-07-13 17:42:55 +01:00
Simon Huber
e59f606566
Cancel popups when clicking within an editor ( #4658 )
...
* Add cancelPopups attribute to edit widget
* Add cancelPopups attribute to factory.js
* Cancel popups in editor/simple.js
* Cancel popups on focus in engines/framed.js
* Cancel popups on focus in CodeMirror engine
* Add cancelPopups="yes" to tag-picker
* Add cancelPopups="yes" to sidebar search
* Add cancelPopups="yes" to editor
* Add cancelPopups="yes" to fields EditTemplate
* Update body.tid
* Add cancelPopups="yes" to title EditTemplate
* Add cancelPopups="yes" to type EditTemplate
* Update EditTextWidget.tid
* Update EditWidget.tid
* Add cancelPopups="yes" to menubar plugin search
* Update tag-picker.tid
* Update tags.tid
2020-06-11 11:41:35 +01:00
Simon Huber
920f0869c4
Fix: remove cancelPopups from codemirror engine ( #4310 )
2019-10-12 16:40:51 +01:00
Jeremy Ruston
92340d81cc
Introduce "parent-plugin" field to control how plugins are displayed in the chooser
...
"Sub-plugins" are displayed within the dropdown of their parent plugin.
This is a more elaborate version of #4109 . It doesn't address dependent plugins (yet), this is just about grouping addon plugins under their parent.
2019-09-25 16:16:28 +01:00
Jeremy Ruston
bf9aeb5755
Improve plugin metadata, and add a "name" field
...
The "name" is optional, but makes the library listing much clearer.
2019-09-19 13:04:10 +01:00
Simon Huber
217670cdf3
Update engine.js
2019-07-10 09:57:59 +02:00
Simon Huber
efd7aa3a53
Make codemirror use tiddler-editor-border palette color ( #3819 )
2019-03-12 16:41:22 +00:00
Simon Huber
41e338dc41
Add smartIndent to codemirror ( #3810 )
...
* add smartIndent config to codemirror
* add indentWithTabs config to codemirror
* make default tabSize same value as indentUnit
* make tab and enter do smart indentation
2019-03-02 14:46:10 +01:00