当前位置: 首页>>代码示例>>Python>>正文


Python ORGMODE.register_plugin方法代码示例

本文整理汇总了Python中orgmode.ORGMODE.register_plugin方法的典型用法代码示例。如果您正苦于以下问题:Python ORGMODE.register_plugin方法的具体用法?Python ORGMODE.register_plugin怎么用?Python ORGMODE.register_plugin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在orgmode.ORGMODE的用法示例。


在下文中一共展示了ORGMODE.register_plugin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUp

# 需要导入模块: from orgmode import ORGMODE [as 别名]
# 或者: from orgmode.ORGMODE import register_plugin [as 别名]
    def setUp(self):
        global counter
        counter += 1
        vim.CMDHISTORY = []
        vim.CMDRESULTS = {}
        vim.EVALHISTORY = []
        vim.EVALRESULTS = {
            # no org_todo_keywords for b
            u'exists("b:org_todo_keywords")'.encode(u"utf-8"): "0".encode(u"utf-8"),
            # global values for org_todo_keywords
            u'exists("g:org_todo_keywords")'.encode(u"utf-8"): "1".encode(u"utf-8"),
            u"g:org_todo_keywords".encode(u"utf-8"): [
                u"TODO".encode(u"utf-8"),
                u"DONE".encode(u"utf-8"),
                u"|".encode(u"utf-8"),
            ],
            u'exists("g:org_improve_split_heading")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u'exists("b:org_improve_split_heading")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u'exists("g:org_debug")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u'exists("b:org_debug")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u'exists("*repeat#set()")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u"b:changedtick".encode(u"utf-8"): (u"%d" % counter).encode(u"utf-8"),
            u"&ts".encode(u"utf-8"): u"8".encode(u"utf-8"),
            u'exists("g:org_tag_column")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u'exists("b:org_tag_column")'.encode(u"utf-8"): u"0".encode(u"utf-8"),
            u"v:count".encode(u"utf-8"): u"0".encode(u"utf-8"),
        }
        if not u"EditStructure" in ORGMODE.plugins:
            ORGMODE.register_plugin(u"EditStructure")
        self.editstructure = ORGMODE.plugins[u"EditStructure"]
        vim.current.buffer[:] = [
            i.encode(u"utf-8")
            for i in u"""
* Überschrift 1
Text 1

Bla bla
** Überschrift 1.1
Text 2

Bla Bla bla
** Überschrift 1.2
Text 3

**** Überschrift 1.2.1.falsch

Bla Bla bla bla
*** Überschrift 1.2.1
* Überschrift 2
* Überschrift 3
  asdf sdf
""".split(
                u"\n"
            )
        ]
开发者ID:sjl,项目名称:vim-orgmode,代码行数:57,代码来源:test_edit_structure.py

示例2: setUp

# 需要导入模块: from orgmode import ORGMODE [as 别名]
# 或者: from orgmode.ORGMODE import register_plugin [as 别名]
	def setUp(self):
		global counter
		counter += 1
		vim.CMDHISTORY = []
		vim.CMDRESULTS = {}
		vim.EVALHISTORY = []
		vim.EVALRESULTS = {
				# no org_todo_keywords for b
				u'exists("b:org_todo_keywords")'.encode(u'utf-8'): '0'.encode(u'utf-8'),
				# global values for org_todo_keywords
				u'exists("g:org_todo_keywords")'.encode(u'utf-8'): '1'.encode(u'utf-8'),
				u'g:org_todo_keywords'.encode(u'utf-8'): [u'TODO'.encode(u'utf-8'), u'DONE'.encode(u'utf-8'), u'|'.encode(u'utf-8')],
				u'exists("g:org_improve_split_heading")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("b:org_improve_split_heading")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("g:org_debug")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("b:org_debug")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("*repeat#set()")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'b:changedtick'.encode(u'utf-8'): (u'%d' % counter).encode(u'utf-8'),
				u'&ts'.encode(u'utf-8'): u'8'.encode(u'utf-8'),
				u'exists("g:org_tag_column")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("b:org_tag_column")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u"v:count".encode(u'utf-8'): u'0'.encode(u'utf-8')}
		if not u'EditStructure' in ORGMODE.plugins:
			ORGMODE.register_plugin(u'EditStructure')
		self.editstructure = ORGMODE.plugins[u'EditStructure']
		vim.current.buffer[:] = [ i.encode(u'utf-8') for i in u"""
* Überschrift 1
Text 1

Bla bla
** Überschrift 1.1
Text 2

Bla Bla bla
** Überschrift 1.2
Text 3

**** Überschrift 1.2.1.falsch

Bla Bla bla bla
*** Überschrift 1.2.1
* Überschrift 2
* Überschrift 3
  asdf sdf
""".split(u'\n')]
开发者ID:rjp,项目名称:vim-orgmode,代码行数:47,代码来源:test_edit_structure.py

示例3: setUp

# 需要导入模块: from orgmode import ORGMODE [as 别名]
# 或者: from orgmode.ORGMODE import register_plugin [as 别名]
	def setUp(self):
		vim.CMDHISTORY = []
		vim.CMDRESULTS = {}
		vim.EVALHISTORY = []
		vim.EVALRESULTS = {
				'exists("g:org_debug")': 0,
				'exists("b:org_debug")': 0,
				'exists("*repeat#set()")': 0,
				'exists("b:org_leader")': 0,
				'exists("g:org_leader")': 0,
				'exists("g:org_tags_column")': 0,
				'exists("b:org_tags_column")': 0,
				'exists("b:org_tags_completion_ignorecase")': 0,
				'exists("g:org_tags_completion_ignorecase")': 0,
				"v:count": 0}
		if not 'TagsProperties' in ORGMODE.plugins:
			ORGMODE.register_plugin('TagsProperties')
		self.showhide = ORGMODE.plugins['TagsProperties']
		vim.current.buffer = """
* Überschrift 1
Text 1

Bla bla
** Überschrift 1.1
Text 2

Bla Bla bla
** Überschrift 1.2
Text 3

**** Überschrift 1.2.1.falsch

Bla Bla bla bla
*** Überschrift 1.2.1
* Überschrift 2
* Überschrift 3
  asdf sdf
""".split('\n')
开发者ID:infracanophile,项目名称:vim-orgmode,代码行数:40,代码来源:test_tags_properties.py

示例4: setUp

# 需要导入模块: from orgmode import ORGMODE [as 别名]
# 或者: from orgmode.ORGMODE import register_plugin [as 别名]
	def setUp(self):
		global counter
		counter += 1
		vim.CMDHISTORY = []
		vim.CMDRESULTS = {}
		vim.EVALHISTORY = []
		vim.EVALRESULTS = {
				u'exists("g:org_debug")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("g:org_debug")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("*repeat#set()")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'b:changedtick'.encode(u'utf-8'): (u'%d' % counter).encode(u'utf-8'),
				u'&ts'.encode(u'utf-8'): u'8'.encode(u'utf-8'),
				u'exists("g:org_tag_column")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u'exists("b:org_tag_column")'.encode(u'utf-8'): u'0'.encode(u'utf-8'),
				u"v:count".encode(u'utf-8'): u'0'.encode(u'utf-8')}
		if not u'EditStructure' in ORGMODE.plugins:
			ORGMODE.register_plugin(u'EditStructure')
		self.editstructure = ORGMODE.plugins[u'EditStructure']
		vim.current.buffer = [ i.encode(u'utf-8') for i in u"""
* Überschrift 1
Text 1

Bla bla
** Überschrift 1.1
Text 2

Bla Bla bla
** Überschrift 1.2
Text 3

**** Überschrift 1.2.1.falsch

Bla Bla bla bla
*** Überschrift 1.2.1
* Überschrift 2
* Überschrift 3
  asdf sdf
""".split(u'\n')]
开发者ID:infracanophile,项目名称:vim-orgmode,代码行数:40,代码来源:test_edit_structure.py


注:本文中的orgmode.ORGMODE.register_plugin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。