GithubHelp home page GithubHelp logo

gk0wk / tw5-codemirror-enhanced Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 4.0 12.07 MB

An enhanced for CodeMirror framework in TiddlyWiki, including TW5 highlight, WikiLink auto-completion, expandable hint, snippets, etc.

Home Page: https://gk0wk.github.io/TW5-CodeMirror-Enhanced/

License: MIT License

JavaScript 20.38% CSS 0.07% TypeScript 76.70% HTML 2.85%
tiddlywiki5 tiddlywiki-plugin codemirror-editor codemirror codemirror-mode

tw5-codemirror-enhanced's People

Contributors

gk0wk avatar linonetwo avatar oflg 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

Watchers

 avatar  avatar

tw5-codemirror-enhanced's Issues

[BUG] 缩进、两个斜杠异常

  1. 缩进的问题,具体表现为编辑时的缩进与显示的缩进不一致导致的代码缩进混乱。可能是codemirror的设置中。

  2. 两个斜杠后面的预览解释不正确。具体表现是,‘//’后面的所有文字都会显示斜体,并且两个斜杠后的内容不会预览。'/////' 五个斜杠包围的内容才会被正确预览。较为复杂,需要区分注释与斜体。

  3. codemirror某个插件在删除最后两行时会报错。

Online Demo

I would recommend to use GitHub pages to setup an online demo to simply click from the repo main page and give a try!

TypeError: value.toString is not a function

I've installed the plugin. I also have the 'external attachments' plugin, not sure if it matters.
When I drag an image from a web page and import, an Untitled tiddler is created. After that, I start getting an exception as in the title. It happens in the function exports.getFieldString in $:/core/modules/widgets/jsontiddler.js at the last line (the 'else' section).
The field is 'fields' and it is a json object with no toString method. It tries to get this field from $:/plugins/Gk0Wk/TW5-CodeMirror-Enhanced/config.json.

[bug]: 开头两行以及最后两行的异常

  • 开头一行使用快捷键以及编辑栏工具设置一级标题会导致开头两行都设置一级标题。并且无论设置二级标题还是列表,都会使开头两行设置他们。
  • 最后两行删除时异常(遗忘)

与Editor AutoLists插件冲突

感谢提供很好用的插件!但遇见一点小bug:

安装Editor AutoLists插件后,会发生冲突,出现自动补全提示框时,回车并不会选中补全内容,而是直接换行,导致自动补全失败。

求问该如何解决冲突,多谢!

Autocomplete is hidden behind current tiddler.

Hi, I recently migrated from CodeMirror-Mode-TiddlyWiki5 and have run into the problem again where the autocomplete window is always behind the tiddler and I'm unable to see/use the autocomplete.

I had a look and the zindex is set to 800, where this commit changed it to a really big number in the old repository.

Gk0Wk/CodeMirror-Mode-TiddlyWiki5@96f3aea

I tried manually updating my installation but it hasn't had an effect.

feature request : autocomplete for tiddler name

Hi ! First of all, thanks a lot for this addon, it's great !

Currently, the addon allows to insert autocompletion for css with the tab key, it would be great if this worked for tiddler name too.

Maybe also add closing brackets ]] (or }} for transclusion) once the selected name is chosen (with tab or by clicking the popup) ?

list levels parsing

The list level parsing returns a class that is 'list' plus one of 'keyword', 'variable-2' or 'variable-3'. This means that in order to style a level 1 list, need to match .list.keyword, in order to match level 2 list need to use .list.variable-2, similarly for level 3, for level 4 there is no match and it'll match .list.keyword.

This makes it order to style lists with indentation (as cmplus does).

I suggest maybe having a 'level-' class and not use 'keyword', 'variable-2', 'variable-3' (not sure of their use case, but the names are confusing for this one)

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.