Compare commits

..

No commits in common. "97e511ce7ed1d0efc49ea74cbb3572c0b21b1365" and "934cae33f37c975f6c04306e125eab9ec893f742" have entirely different histories.

2 changed files with 12 additions and 9 deletions

View File

@ -1808,11 +1808,17 @@ var Outline = {
&& (res[attr] = true) } && (res[attr] = true) }
return res }, {})), return res }, {})),
...(deep ? ...(deep ?
{children: this.data([...elem.lastChild.children])} //{children: this.json(elem)}
{children: [...elem.lastChild.children]
.map(function(elem){
return that.data(elem) })}
: {}), : {}),
} }, } },
// Same as .data(..) but by default returns the root nodes. // XXX do we need both this and data???
// NOTE: this always returns an array // ...the only differences are:
// - the default behavior node vs all
// - .json() always returns an array
// XXX should this always return a list???
json: function(node='all'){ json: function(node='all'){
return [this.data(...( return [this.data(...(
arguments.length == 0 ? arguments.length == 0 ?

View File

@ -141,16 +141,13 @@ var setup = function(){
|text|text|text| |text|text|text|
- -
- ## ToDo: - ## ToDo:
- Time to think about a standalone client -- at least to edit own notes as a test...
- _also this would be a nice opportunity to start the move to a newer electron version_
- Might be a good idea to think how to avoid the constant selections on focus...
- Focus of elements needs cleanup...
- navigation up/down to a root element is a bit jumpy...
- add loading spinner -- `.loading` class set on `.load(..)` and unset when done... - add loading spinner -- `.loading` class set on `.load(..)` and unset when done...
- DONE set/unset class - DONE set/unset class
- add animation - add animation
- make this extensible from client... - Time to think about a standalone client -- at least to edit own notes as a test...
- _also this would be a nice opportunity to start the move to a newer electron version_
- Q: Make the heading level depend on its depth?? - Q: Make the heading level depend on its depth??
- Might be a good idea to think how to avoid the constant selections on focus...
- Q: When moving up/down between nodes do we want to place the caret relative to markdown (current) or to view? (see: `CARET_V_MOVE`) - Q: When moving up/down between nodes do we want to place the caret relative to markdown (current) or to view? (see: `CARET_V_MOVE`)
- Q: Should tables be text-based markdown or higher-level? - Q: Should tables be text-based markdown or higher-level?
collapsed:: true collapsed:: true