mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-30 18:40:08 +00:00 
			
		
		
		
	notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									273c14aa20
								
							
						
					
					
						commit
						14fec24aaf
					
				| @ -350,6 +350,13 @@ editor .outline [tabindex]:focus { | ||||
| 	/*margin-left: 0;*/ | ||||
| } | ||||
| 
 | ||||
| /* code... */ | ||||
| .editor .outline [tabindex]>span code { | ||||
| 	padding: 0.1em 0.3em; | ||||
| 	font-family: monospace; | ||||
| 	background: rgba(0,0,0,0.07); | ||||
| 	border-radius: 0.2em; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /*********************************************************************/ | ||||
|  | ||||
| @ -339,9 +339,10 @@ var Outline = { | ||||
| 			.replace(/(?<!\\)\[[X]\]/gm,  | ||||
| 				style('check', '<input class="check" type="checkbox" checked>')) | ||||
| 			// basic styling...
 | ||||
| 			.replace(/(?<!\\)\*(?=[^\s*])([^*]*[^\s*])(?<!\\)\*/gm, '<b>$1</b>') | ||||
| 			.replace(/(?<!\\)~(?=[^\s~])([^~]*[^\s~])(?<!\\)~/gm, '<s>$1</s>') | ||||
| 			.replace(/(?<!\\)_(?=[^\s_])([^_]*[^\s_])(?<!\\)_/gm, '<i>$1</i>')  | ||||
| 			.replace(/(?<!\\)\*(?=[^\s*])(([^*]|\\\*)*[^\s*])(?<!\\)\*/gm, '<b>$1</b>') | ||||
| 			.replace(/(?<!\\)~(?=[^\s~])(([^~]|\\~)*[^\s~])(?<!\\)~/gm, '<s>$1</s>') | ||||
| 			.replace(/(?<!\\)_(?=[^\s_])(([^_]|\\_)*[^\s_])(?<!\\)_/gm, '<i>$1</i>')  | ||||
| 			.replace(/(?<!\\)`(?=[^\s_])(([^`]|\\`)*[^\s_])(?<!\\)`/gm, '<code>$1</code>')  | ||||
| 			// quoting...
 | ||||
| 			.replace(/(?<!\\)\\(.)/gm, '$1')  | ||||
| 		return elem }, | ||||
|  | ||||
| @ -36,20 +36,29 @@ var setup = function(){ | ||||
| 	- Bonsai | ||||
|   -  | ||||
| - ## ToDo | ||||
|   - shifting nodes up/down | ||||
|   - need to reach checkboxes from keyboard | ||||
|   - editor: bksapce/del at start/end of a block should join it with prev/next | ||||
|   - editor: pressing enter in text edit mode should split text into two blocks | ||||
|   - ASAP: editor: bksapce/del at start/end of a block should join it with prev/next | ||||
|   - ASAP: editor: pressing enter in text edit mode should split text into two blocks | ||||
|   - ASAP: editor: shifting nodes up/down | ||||
|   - ASAP: editor: `-` at start of line is interpreted as block marker... | ||||
|   - editor: caret | ||||
|     - ~go to next/prev element's start/end when moving off last/first char~ | ||||
|     - handle up/down on wrapped blocks | ||||
|       _...can't seem to get caret line in a non-hacky way_ | ||||
|   - editor: semi-live update styles | ||||
|   - ~editor: semi-live update styles~ | ||||
|   - need to reach checkboxes via keyboard | ||||
|   - persistent empty first/last node (a button to create a new node) | ||||
|   - add completion percentage to blocks with todo's nested | ||||
|     either by default oron '%%' or '[%]' placeholder | ||||
| 	...ratio between all nested open checkboxes to checked (???) | ||||
|   - add completion percentage to blocks with todo's nested: | ||||
|     - `[%]`, `%%`, or something similar... | ||||
|   - read-only mode | ||||
|   - should bulets be on the same level as nodes or offset?? | ||||
|     - A) justified to bulet: | ||||
|          * list item | ||||
|          * list item | ||||
|          block text | ||||
|     - B) justified to text _(current)_: | ||||
|          * list item | ||||
|          * list item | ||||
|            block text | ||||
|   - ~do a better expand/collapse icons~ | ||||
|   - ~loading from DOM -- fill textarea~ | ||||
|   - ~focus management~ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user