summary refs log tree commit diff stats
path: root/nimsuggest
Commit message (Expand)AuthorAgeFilesLines
* fix stricteffects (nimsuggest/sexp) (#19405)flywind2022-01-181-1/+1
* [backport] use old style hints in .cfg files (#18917)Miran2021-09-291-1/+1
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-191-1/+1
* fix #18385 followup, by building nimsuggest with -d:release during testing (#...Timothee Cour2021-07-291-4/+11
* improvements to hint:processing: show import stack, distinguish nims, show in...Timothee Cour2021-06-303-3/+3
* change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) (#18...Timothee Cour2021-05-261-1/+1
* disable tmacro_highlight on i386, refs #17945 (#17949)Timothee Cour2021-05-061-0/+4
* improve nimsuggest/tester, minor improvements to koch.nim (#17879)Timothee Cour2021-04-291-10/+12
* add `--processing:dots|filenames|off` to customize `hintProcessing` (#17817)Timothee Cour2021-04-235-6/+11
* fixed dot operator recursive loop & macro suggest (#16922)Saem Ghani2021-02-152-12/+1
* tables module uses runnableExamples (#16994)flywind2021-02-131-0/+2
* compilesettings: add libpath (#16997)Timothee Cour2021-02-121-2/+4
* nimsuggest prioritize non-deprecated suggestions (#16816)Saem Ghani2021-01-292-10/+12
* regression test for nim-lang/nimsuggest#58 (#16817)Saem Ghani2021-01-251-0/+22
* fixed nim-lang/nimsuggest#48 type aware sug (#16814)Saem Ghani2021-01-252-3/+29
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-1/+1
* fixes nim-lang/nimsuggest#103 con dot exprs (#16657)Saem Ghani2021-01-121-2/+32
* fixed nim-lang/nimsuggest#82 pure enum field sug (#16676)Saem Ghani2021-01-111-0/+18
* IC: next steps (#16550)Andreas Rumpf2021-01-071-1/+1
* fixes nim-lang/nimsuggest#119 outline includes (#16608)Saem Ghani2021-01-061-2/+8
* nimsuggest: fix and re-enable old tests (#16401)Saem Ghani2020-12-2719-376/+292
* use hexchar in stdlib (#16290)flywind2020-12-171-8/+2
* cmdline: improve command processing (#16056)Timothee Cour2020-11-261-2/+2
* rename loadConfigsAndRunMainCommand => loadConfigsAndProcessCmdLine, reflect ...Timothee Cour2020-11-201-2/+2
* suggest: try to find the implementation of a symbol when def is used (#15555)alaviss2020-10-141-0/+13
* refactoring: removed cmdlinehelper.mainCommand callbackAndreas Rumpf2020-10-111-6/+8
* * honor --errorMax even for tools (eg drnim, nim doc) (#14546)Timothee Cour2020-06-021-4/+2
* Change severity of template instantiation message [backport] (#14526)Danil Yarantsev2020-06-011-0/+13
* Fix `compiles` for nimsuggest [backport] (#14527)Danil Yarantsev2020-06-011-0/+8
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-151-7/+7
* compiler/suggest: highlight squashed operators (#11796)alaviss2020-04-201-0/+11
* fix deprecations and other warnings (#13748)Miran2020-03-251-3/+3
* fix nimsuggest warning (#13699)Jasper Jenkins2020-03-203-7/+4
* fix .deprecated. object typedef crash (#13643)Andy Davidoff2020-03-162-8/+7
* Revert "nimsuggest: don't add CRLF to replies (#13545)" (#13597)alaviss2020-03-061-4/+4
* nimsuggest: don't add CRLF to replies (#13545)alaviss2020-03-041-4/+4
* make case-object transitions explicit, make unknownLineInfo a const, replace ...Jasper Jenkins2020-01-171-1/+0
* fix nimsuggest deprecation warnings (#12772)Jasper Jenkins2019-11-301-2/+2
* remove unused importsnarimiran2019-11-061-4/+3
* compiler/suggest: add variable support to `con` (#12569)alaviss2019-11-041-0/+12
* compiler/semtypes: improve lineinfo for exported object fields (#12495)alaviss2019-10-251-0/+11
* compiler/semcall: return the correct lineinfo for nkCallStrLit (#12484)alaviss2019-10-241-0/+11
* nimsuggest: add a command that returns the project file (#12411)alaviss2019-10-111-1/+10
* nimsuggest: add option to force finding the project file (#12409)alaviss2019-10-111-1/+10
* nimsuggest: fix tcp socket leak for epc backend (#12384) [backport]alaviss2019-10-081-1/+1
* nimsuggest: fix tcp socket leak (#12377) [backport]alaviss2019-10-081-1/+1
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-272-2/+2
* fixes #12125 (#12131)Andreas Rumpf2019-09-061-0/+0
* minor style changesAraq2019-07-112-10/+10
* [bugfix] fix #11482, fix nimsuggest range error (#11519)Miran2019-06-171-2/+2
pan class="n">clients; c; c = c->next) if(isvisible(c) && !c->isfloat) n++; if(n > 1) h = (sh - bh) / (n - 1); else h = sh - bh; for(i = 0, c = clients; c; c = c->next) { c->ismax = False; if(isvisible(c)) { if(c->isfloat) { resize(c, True, TopLeft); continue; } if(n == 1) { c->x = sx; c->y = sy + bh; c->w = sw - 2; c->h = sh - 2 - bh; } else if(i == 0) { c->x = sx; c->y = sy + bh; c->w = mw - 2; c->h = sh - 2 - bh; } else if(h > bh) { c->x = sx + mw; c->y = sy + (i - 1) * h + bh; c->w = w - 2; if(i + 1 == n) c->h = sh - c->y - 2; else c->h = h - 2; } else { /* fallback if h < bh */ c->x = sx + mw; c->y = sy + bh; c->w = w - 2; c->h = sh - 2 - bh; } resize(c, False, TopLeft); i++; } else ban(c); } if(!sel || !isvisible(sel)) sel = getnext(clients); if(sel) focus(sel); else XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); restack(); } void focusnext(Arg *arg) { Client *c; if(!sel) return; if(!(c = getnext(sel->next))) c = getnext(clients); if(c) { focus(c); restack(); } } void focusprev(Arg *arg) { Client *c; if(!sel) return; if(!(c = getprev(sel->prev))) { for(c = clients; c && c->next; c = c->next); c = getprev(c); } if(c) { focus(c); restack(); } } Bool isvisible(Client *c) { unsigned int i; for(i = 0; i < ntags; i++) if(c->tags[i] && seltag[i]) return True; return False; } void restack() { static unsigned int nwins = 0; static Window *wins = NULL; unsigned int f, fi, m, mi, n; Client *c; XEvent ev; for(f = 0, m = 0, c = clients; c; c = c->next) if(isvisible(c)) { if(c->isfloat || arrange == dofloat) f++; else m++; } if(!(n = 2 * (f + m))) { drawstatus(); return; } if(nwins < n) { nwins = n; wins = erealloc(wins, nwins * sizeof(Window)); } fi = 0; mi = 2 * f; if(sel->isfloat || arrange == dofloat) { wins[fi++] = sel->twin; wins[fi++] = sel->win; } else { wins[mi++] = sel->twin; wins[mi++] = sel->win; } for(c = clients; c; c = c->next) if(isvisible(c) && c != sel) { if(c->isfloat || arrange == dofloat) { wins[fi++] = c->twin; wins[fi++] = c->win; } else { wins[mi++] = c->twin; wins[mi++] = c->win; } } XRestackWindows(dpy, wins, n); drawall(); XSync(dpy, False); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } void togglemode(Arg *arg) { arrange = (arrange == dofloat) ? dotile : dofloat; if(sel) arrange(NULL); else drawstatus(); } void toggleview(Arg *arg) { unsigned int i; seltag[arg->i] = !seltag[arg->i]; for(i = 0; i < ntags && !seltag[i]; i++); if(i == ntags) seltag[arg->i] = True; /* cannot toggle last view */ arrange(NULL); } void view(Arg *arg) { unsigned int i; for(i = 0; i < ntags; i++) seltag[i] = False; seltag[arg->i] = True; arrange(NULL); } void zoom(Arg *arg) { Client *c; if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax) return; if(sel == getnext(clients)) { if((c = getnext(sel->next))) sel = c; else return; } /* pop */ sel->prev->next = sel->next; if(sel->next) sel->next->prev = sel->prev; sel->prev = NULL; clients->prev = sel; sel->next = clients; clients = sel; focus(sel); arrange(NULL); }