Skip to content

Commit 8a065fd

Browse files
committed
Remove tickit UI
Also remove the -g option and use --headless to start a listening instance.
1 parent bc77a05 commit 8a065fd

File tree

2 files changed

+4
-487
lines changed

2 files changed

+4
-487
lines changed

neovim/ui/cli.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
@click.command(context_settings=dict(allow_extra_args=True))
1111
@click.option('--prog')
1212
@click.option('--notify', '-n', default=False, is_flag=True)
13-
@click.option('--gui', '-g', default=False, is_flag=True)
1413
@click.option('--listen', '-l')
1514
@click.option('--connect', '-c')
1615
@click.option('--profile',
1716
default='disable',
1817
type=click.Choice(['ncalls', 'tottime', 'percall', 'cumtime',
1918
'name', 'disable']))
2019
@click.pass_context
21-
def main(ctx, prog, notify, gui, listen, connect, profile):
20+
def main(ctx, prog, notify, listen, connect, profile):
2221
"""Entry point."""
2322
address = connect or listen
2423

@@ -42,7 +41,7 @@ def main(ctx, prog, notify, gui, listen, connect, profile):
4241
import time
4342
from subprocess import Popen
4443
os.environ['NVIM_LISTEN_ADDRESS'] = address
45-
nvim_argv = shlex.split(prog or 'nvim -T abstract_ui') + ctx.args
44+
nvim_argv = shlex.split(prog or 'nvim --headless') + ctx.args
4645
# spawn the nvim with stdio redirected to /dev/null.
4746
dnull = open(os.devnull)
4847
p = Popen(nvim_argv, stdin=dnull, stdout=dnull, stderr=dnull)
@@ -59,12 +58,8 @@ def main(ctx, prog, notify, gui, listen, connect, profile):
5958
nvim_argv = shlex.split(prog or 'nvim --embed') + ctx.args
6059
nvim = attach('child', argv=nvim_argv)
6160

62-
if gui:
63-
from .gtk_ui import GtkUI
64-
ui = GtkUI()
65-
else:
66-
from .tickit_ui import TickitUI
67-
ui = TickitUI()
61+
from .gtk_ui import GtkUI
62+
ui = GtkUI()
6863
bridge = UIBridge()
6964
bridge.connect(nvim, ui, profile if profile != 'disable' else None, notify)
7065

0 commit comments

Comments
 (0)