mirror of
https://github.com/wassname/nvatom.git
synced 2026-08-17 11:22:49 +08:00
Rename notelink to interlink
This commit is contained in:
@@ -3,10 +3,10 @@ fs = require 'fs-plus'
|
||||
Utility = require './utility'
|
||||
|
||||
module.exports =
|
||||
class NoteLink
|
||||
class Interlink
|
||||
constructor: ->
|
||||
@subscriptions = new CompositeDisposable
|
||||
@subscriptions.add atom.commands.add 'atom-workspace', 'nvatom:openInterlink': => NoteLink.openInterlink()
|
||||
@subscriptions.add atom.commands.add 'atom-workspace', 'nvatom:openInterlink': => Interlink.openInterlink()
|
||||
|
||||
destroy: ->
|
||||
@subscriptions.dispose()
|
||||
@@ -16,7 +16,7 @@ class NoteLink
|
||||
return unless editor?
|
||||
return unless Utility.isNote(editor.getPath())
|
||||
|
||||
noteTitle = NoteLink.getInterlinkUnderCursor(editor)
|
||||
noteTitle = Interlink.getInterlinkUnderCursor(editor)
|
||||
return unless noteTitle?
|
||||
return unless noteTitle.length
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
path = require 'path'
|
||||
fs = require 'fs-plus'
|
||||
{CompositeDisposable, Disposable} = require 'atom'
|
||||
NoteLink = require './notelink'
|
||||
Interlink = require './interlink'
|
||||
Utility = require './utility'
|
||||
|
||||
module.exports =
|
||||
@@ -51,11 +51,11 @@ module.exports =
|
||||
|
||||
@subscriptions.add atom.workspace.onWillDestroyPaneItem ({item}) => @autosave(item) unless @autodelete(item)
|
||||
|
||||
@noteLink = new NoteLink()
|
||||
@interlink = new Interlink()
|
||||
|
||||
deactivate: ->
|
||||
@subscriptions.dispose()
|
||||
@noteLink.destroy()
|
||||
@interlnk.destroy()
|
||||
@notationalVelocityView.destroy()
|
||||
|
||||
serialize: ->
|
||||
|
||||
Reference in New Issue
Block a user