From 092322bb7398979e3fbc15d9ec8ba63c544f2132 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 10 Dec 2018 16:27:40 -0500 Subject: [PATCH] updated todo and cleaned up edit command a bit --- TODO.md | 9 +++++---- src/edit.c | 8 +------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/TODO.md b/TODO.md index 1038fdd..e26d92b 100644 --- a/TODO.md +++ b/TODO.md @@ -2,10 +2,11 @@ ## STAGING -* GOTO message should warp mouse -* implement tide registrar -* implement edit (tctl) command -* implement new version of tfetch (plumb) +* registrar should remove invalid windows from registry when detected +* tide should re-register with the registrar when a new registrar is launched +* edit command should have a force option to launch tide without registrar notification +* edit command should launch tide instead of registrar +* fetch should stuff match strings in environment variables instead of evaling * Line - Get the current line number(s) containing the selection * gap buffer does not handle UTF-8 currently diff --git a/src/edit.c b/src/edit.c index 4b776a2..3ea9c0b 100644 --- a/src/edit.c +++ b/src/edit.c @@ -48,16 +48,10 @@ void edit_file(XConf* x, Window registrar, char* path, char* addr) { } } -void xclientmsg(XConf* x, XEvent* e) { - (void)x, (void)e; - puts("clientmsg"); -} - int main(int argc, char** argv) { XConf x = {0}; x11_init(&x); x11_mkwin(&x, 1, 1, 0); - x.eventfns[ClientMessage] = xclientmsg; XA_REGISTRAR = XInternAtom(x.display, "TIDE_REGISTRAR", PropertyChangeMask); XA_OPEN = XInternAtom(x.display, "OPEN", 0); XA_DONE = XInternAtom(x.display, "DONE", 0); @@ -65,7 +59,7 @@ int main(int argc, char** argv) { if (argc == 1) { spawn("tide"); } else { - /* Loop over files and send and OPEN message for each one. */ + /* Loop over files and send an OPEN message for each one. */ for (int i = 1; i < argc; i++) { char* addr = strrchr(argv[i], ':'); if (addr) *addr = '\0', addr++; -- 2.52.0