Browse Source

Remove rib references.

remove-rib
Michael Welford 4 months ago
parent
commit
c64c411062
4 changed files with 0 additions and 36 deletions
  1. +0
    -26
      autoload/rpc.vim
  2. +0
    -1
      doc/neuron.vim.txt
  3. +0
    -8
      plugin/neuron.vim
  4. +0
    -1
      test/neuron.vader

+ 0
- 26
autoload/rpc.vim View File

@ -1,29 +1,3 @@
func! s:on_exit(chan_id, data, ...) abort
let g:_neuron_rib_job = -1
endf
func! rpc#start_server()
let options = {
\ 'on_exit': function('s:on_exit'),
\}
if g:_neuron_rib_job == -1
let g:_neuron_rib_job = jobstart(['neuron', 'rib', '-wS'], options)
echom 'Neuron rib server started.'
end
echom 'Opening http://127.0.0.1:8080/...'
call rpc#open_preview_page()
endf
func! rpc#stop_server()
if g:_neuron_rib_job != -1
call jobstop(g:_neuron_rib_job)
echom('Neuron rib server stopped.')
let g:_neuron_rib_job = -1
else
echom 'Neuron rib server is not running already!'
end
endf
func! rpc#open_preview_page()
let l:opener = {'linux': 'xdg-open', 'macos': 'open'}
let l:platform = util#get_platform()


+ 0
- 1
doc/neuron.vim.txt View File

@ -56,7 +56,6 @@ MAPPINGS *neuron.vim-mappings*
nm gzn <Plug>EditZettelNew
nm gzN <Plug>EditZettelNewFromCword
vm gzN <esc><Plug>EditZettelNewFromVisual
nm gzb <Plug>NeuronRibStart
nm gzr <Plug>NeuronRefreshCache
nm gzu <Plug>EditZettelLast
nm gzU :<C-U>call neuron#move_history(-1)<cr>


+ 0
- 8
plugin/neuron.vim View File

@ -20,10 +20,6 @@ let g:neuron_fzf_options = get(g:, 'neuron_fzf_options', ['-d',':','--with-nth',
let g:neuron_inline_backlinks = get(g:, 'neuron_inline_backlinks', 1)
let g:neuron_no_mappings = get(g:, 'neuron_no_mappings', 0)
let g:_neuron_rib_job = -1
nm <silent> <Plug>NeuronRibStop :<C-U>call rpc#stop_server()<cr>
nm <silent> <Plug>NeuronRibStart :<C-U>call rpc#start_server()<cr>
nm <silent> <Plug>EditZettelNew :<C-U>call neuron#edit_zettel_new()<cr>
nm <silent> <Plug>EditZettelSearchContent :<C-U>call neuron#search_content(0)<cr>
nm <silent> <Plug>EditZettelSearchContentUnderCursor :<C-U>call neuron#search_content(1)<cr>
@ -42,7 +38,6 @@ if !exists("g:neuron_no_mappings") || ! g:neuron_no_mappings
nm gzn <Plug>EditZettelNew
nm gzN <Plug>EditZettelNewFromCword
vm gzN <esc><Plug>EditZettelNewFromVisual
nm gzb <Plug>NeuronRibStart
nm gzr <Plug>NeuronRefreshCache
nm gzu <Plug>EditZettelLast
nm gzU :<C-U>call neuron#move_history(-1)<cr>
@ -59,9 +54,6 @@ if !exists("g:neuron_no_mappings") || ! g:neuron_no_mappings
nm gzv <Plug>ToggleBacklinks
end
com! NeuronRibStart :call rpc#start_server()
com! NeuronRibStop :call rpc#stop_server()
" refresh the cache now if we are in a zettelkasten dir
if filereadable(g:neuron_dir."neuron.dhall")
let current_file = expand("%:p")


+ 0
- 1
test/neuron.vader View File

@ -18,7 +18,6 @@ Execute (s:deform_zettelid):
AssertEqual util#deform_zettelid('<myzettelid>'), 'myzettelid'
AssertEqual util#deform_zettelid('<myzettelid?cf>'), 'myzettelid'
Execute (util#get_formatted_zettelid):
AssertThrows util#get_formatted_zettelid('notazettelid')
AssertThrows util#get_formatted_zettelid('0620e9c1')


Loading…
Cancel
Save