Rob Hoelz
d8b291bc04
Fix search method for search tokens spread across fields ( #3641 )
...
* Fix search method for search tokens spread across fields
Addresses GH #3636 , which reports that if you're searching for "test
body", and "test" only appears in the title field, and "body" only appears
in the text field, 5.1.18's search method won't yield that tiddler as a
result, which appears to be a regression from the 5.1.17 behavior
* Add test for searching for multiple tokens across fields
Verifies GH #3636 :
> If I create a tiddler in the empty edition with the title "Test tiddler" and content "Body content", searching the wiki for "test body" yields no results under either "title matches" or "all matches". Searching for either word individually turns up "Test tiddler", and repeating this in an empty wiki I created from the 5.1.17 tag causes "Test tiddler" to show up under "all matches".
2018-12-17 11:19:48 +00:00
BurningTreeC
7729649f0e
Fix bad function declaration in wiki.js ( #3559 )
...
fix for #3555 - inner function declaration should be on top of its "host" function
error originally appeared on firefox v38.0.5
2018-11-20 11:50:12 +00:00
Jermolene
b584295831
Fix crash with search operator with blank field list
2018-11-01 12:56:56 +00:00
Jeremy Ruston
6dcdc2049a
Enhance search operator ( #3502 )
...
* Enhance search operator
* Add support for searching all fields
and also searching all fields except nominated fields.
* Docs tweaks
Thanks @pmario
* Error message improvements
* Improve error message formatting
2018-10-30 17:39:18 +00:00
Cameron Fischer
d8007386cf
Fix issues with ordering of tagged items ( #3301 )
...
* Added better handling for sortByList manual placements
If manual placement specifications show up in an inconvenient order,
sortByList, will go to the trouble of processing them in that order.
* Added tests to confirm solution to (#3296 )
...That custom tag ordering will not choke when tiddlers get sorted after their dependencies have been placed around them
* Corrected list-after bug when referencing external titles
* Using more error-proof $tw.utils.hop in sortByList
* minor indentation correction in test-tags.js
2018-10-07 12:15:33 +01:00
Jermolene
83a245ed21
Refactor utility for converting tiddlers to JSON
2018-10-01 11:27:45 +01:00
Jermolene
7368cc74e1
Remove inadvertant usage of Object.assign
...
In order to retain compatibiltiy with IE11
See this discussion: https://groups.google.com/d/topic/tiddlywiki/RjA7_mee5oc/discussion
2018-09-21 10:56:01 +01:00
Jermolene
0f7ce7b67f
Refactor navigator widget to use story utility to manipulate the storylist as well as the historylist
2018-08-23 18:31:48 +01:00
Jermolene
6b14969cf6
Display a warning for binary tiddlers in view mode
...
The base64 data is currently parsed as wikitext, which is slow and unhelpful
We already display the same warning for binary tiddlers in edit mode.
2018-05-18 17:53:07 +01:00
Cameron Fischer
7e58866499
Added present-but-empty list-after functionality ( #3219 )
...
This places the list item at the end of the list when its 'list-item' field
is an empty string.
2018-04-24 16:58:09 +01:00
Jermolene
fb3b7aa1cd
Coding style tweaks for #3134
2018-03-05 11:11:49 +00:00
Rizwan
2b0204422d
Sortan filter for alpha-numeric filter ( #3134 )
...
* Sortan filter for alpha-numeric filter
* Removing Case sensitive option, Removing default value for isAlphanumeric parameter, updating formatting
* Formatting changes
* Formatting changes
2018-03-05 11:09:25 +00:00
Jermolene
518f57f4bb
Add new hook "th-importing-files"
2017-10-11 17:52:37 +01:00
Jermolene
596dfa1d50
Allow manual selection of deserializer for dropping or importing files
2017-07-12 16:42:16 +01:00
Jermolene
52a414959c
wiki.extractTiddlerDataItem() should use caching
2017-02-28 10:23:02 +00:00
Jermolene
b9a835b879
Fix bug with wiki.getTiddlerDataCached()
...
We need to process the default data outside of the cache function to
ensure that we don’t cache the defaults
2017-02-28 10:23:02 +00:00
Jermolene
97e995e0c7
Add wiki.checkTiddlerText() convenience method
2017-02-09 15:43:28 +00:00
Jermolene
d1121787c0
Add new button to temporarily suspend timestamps
...
Useful when you want to make an edit but preserve the modification
date/time.
2016-11-23 18:20:31 +00:00
Jermolene
8e02bde938
Refinements to 87fa7f972c
2016-10-18 16:39:18 +01:00
Jermolene
87fa7f972c
Ensure global macros are available in modals and notifications
2016-10-18 09:18:56 +01:00
Jermolene
4d74f52202
Remove extraneous text
...
Copy/paste whoops.
2016-08-20 17:11:54 +01:00
Jermolene
05b32728bc
Allow browser-based file reading to use deserializers for binary files
2016-08-20 17:09:22 +01:00
Jermolene
a11a4de6af
Fix problem with editing missing tiddlers
...
Fixes #2412
2016-05-02 10:12:08 +01:00
Jeremy Ruston
581634d282
Merge pull request #2164 from pmario/issue-2158
...
Issue 2158 - check for new draft fields and warn if cancel is clicked
2016-02-11 09:31:58 +00:00
Jermolene
93f7d8c028
Fix bug with tiddler widget and a blank tiddler title
2016-01-05 18:48:04 +00:00
Mario Pietsch
3977cf009b
fixes #2158 check if new fields are present and warn on cancel
2015-12-28 11:31:36 +01:00
Mario Pietsch
7c4ea64210
fixes #2158 check if new fields are present and warn on cancel
2015-12-28 11:29:43 +01:00
Tobias Beer
6b3fc8d538
updated #1480 "undefined value removes field or index"
...
when $value is unspecified, $action-setfield removes field or index...
modified
setText() — $:/core/modules/wiki.js
invokeAction() — $:/core/modules/widgets/action-setfield
demo
http://tobibeer.github.io/tw/batch/#ActionSetField-RemoveIndex
2015-09-25 15:20:37 +02:00
Jermolene
6a3c4d6c91
Flip logic for suppressing timestamps
...
Fixing a mistake from the earlier commits, so that the default remains
that the timestamps are applied.
2015-08-09 11:09:02 +01:00
Jermolene
e5cd8313a0
Update actionsetfield widget to allow timestamp to be preserved
2015-08-06 18:17:09 +01:00
Jermolene
9168480d18
Clear caches when changing plugins
2015-08-02 22:22:33 +01:00
Jermolene
8444961cd2
Introduce Story object
...
A lightweight object to encapsulate manipulation of the story and
history lists
2015-08-01 18:09:00 +01:00
Jermolene
32f6d7f1b0
Revert getTiddlerData() and add getTiddlerDataCached()
...
For backwards compatibility, we now explicitly request the cacheable
version of this method.
Fixes #1873
2015-07-10 16:43:50 +01:00
Jermolene
8bfc6f3557
Adjust cache names for parse caches
...
The old names were a hangover from an old refactoring.
2015-07-08 08:26:19 +01:00
Jermolene
c6e48ebc2d
Performance optimisations
...
In some situations, I’m seeing x2.5 speedups with these optimisations
Starts fixing #1864
2015-07-05 19:47:44 +01:00
Jermolene
b0cb17cd83
Re-establish caching of results of parsing a tiddler
...
I switched this optimisation off back in
ed35d91be6
, in October 2013, as part of a
big refactoring of the parsing and widget mechanism. I’ve been meaning
to switch it back on for some time.
My rough measurements suggest that this optimisation can reduce
rendering time by 5-10%.
2015-07-05 17:48:18 +01:00
Jermolene
7866f9b2de
Typo
...
Typically for JavaScript, initialising an object as an array doesn’t
break anything because an array is an object. Anyhow, it should be an
object in this case.
2015-05-02 17:22:23 +01:00
Jermolene
a4a9daa40b
Extend wiki.makeTranscludeWidget() to control mode
2015-03-18 11:39:50 +00:00
Jermolene
c33a17a475
Revert "sort unlisted tags by title"
...
Revert “sort unlisted tags by title”
a8ab08e8fa
by @tobibeer
The problem was that this commit changed the order of stylesheet
processing. For background see:
https://groups.google.com/d/topic/tiddlywiki/BPuuSkG6siU/discussion
2015-03-11 19:17:14 +00:00
Jermolene
e386e26b2d
Fix problems with $tw.utils.checkVersions()
...
Previous changes since 5.1.7 broke the documented semantics by no
longer returning true when the versions match. It affected the upgrade
process, making it impossible to upgrade to a later pre-release (ie
where the version numbers in the upgrade.html match those in the file
being upgraded).
Also reviewed and updated the calls to checkVersions.
@felixhayashi I think that this effectively reverts the change you
original submitted. Are you OK with it?
2015-02-12 23:04:20 +00:00
Jim Lehmer
8cd0c2afcd
Make sure all "get" access to $tw.config.fileExtensionInfo
goes through a $tw.utils.getFileExtensionInfo
helper function that ensures the parameter is cast to lowercase. Fixes #1418 .
2015-02-01 12:33:40 -06:00
Jeremy Ruston
08f6e7f624
Merge pull request #1378 from tobibeer/tag-button-sort-tagging
...
sort unlisted tags by title
2015-01-27 14:30:36 +00:00
Tobias Beer
e9bdf6f542
trying to show the conditional nicely aligned
2015-01-26 19:58:00 +01:00
Tobias Beer
8a3991a619
extracted number comparision function
...
and added missing brackets
2015-01-23 14:57:04 +01:00
Tobias Beer
122e16d39c
putting the variables in the right scope
2015-01-23 12:24:47 +01:00
Tobias Beer
ad62d9a083
first attempt at fixing wrong sort order in nsort and nsortcs
...
not working yet, no idea why
2015-01-23 12:06:32 +01:00
Tobias Beer
6006ed0ecf
added case-insensitivity using wiki.sortTiddlers
2015-01-17 12:02:54 +01:00
Tobias Beer
a8ab08e8fa
sort unlisted tags by title
...
when the tiddlers are not listed in the list field, sort them by title
nonetheless, otherwise we get a real poor taglist from
**$:/core/ui/TagTemplate**
2015-01-17 11:40:33 +01:00
Jermolene
9f087e7667
Ensure creation fields set for data tiddlers
2014-12-24 10:29:00 +00:00
Jermolene
a9eab1b8fc
Improve import logging
2014-11-14 10:33:41 +00:00