vim-pad

minimal etherpad alternative - vim plugin
git clone https://git.ce9e.org/vim-pad.git

commit
83c2c7b310faac8b0b30321c31e47cdbd968cb6a
parent
94fc8efaacaf8af0e34c5d36889dfa4bf06c7958
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-05-29 14:37
chore: break long line

Diffstat

M python/pad/__init__.py 7 ++++++-

1 files changed, 6 insertions, 1 deletions


diff --git a/python/pad/__init__.py b/python/pad/__init__.py

@@ -28,7 +28,12 @@ class Pad:
   28    28 		return '\n'.join(self.buffer[:])
   29    29 
   30    30 	def start_listen(self):
   31    -1 		vim.command(f'let g:pad_curl_{self.id} = job_start(["curl", "-N", "{self.url}"], {{"out_cb": "pad#on_channel"}})')
   -1    31 		vim.command(
   -1    32 			f'let g:pad_curl_{self.id} = job_start('
   -1    33 				f'["curl", "-N", "{self.url}"], '
   -1    34 				'{"out_cb": "pad#on_channel"}'
   -1    35 			')'
   -1    36 		)
   32    37 
   33    38 	def stop_listen(self):
   34    39 		vim.command(f'call job_stop(g:pad_curl_{self.id})')