Commit graph

8 commits

Author SHA1 Message Date
Charlie Gordon
c5e4d9d3dc Improve file completion, sundries
- fix bogus test for . and .. in find_file_next()
- use strequal() instead of !strcmp()
- add some emacs-lisp defined symbols
- fixed awk mode for `#` comments
2020-11-14 09:57:48 +01:00
Charlie Gordon
28128ae68c Improve command argument parsing
- add description placeholders to all CMDx definitions
- swap arguments to qe_split_window() and do_split_window()
- pass iteration count based on universal argument to
  do_up_down(), do_left_right(), do_word_right(), do_kill_word(),
  do_forward_paragraph(), do_kill_paragraph(), do_c_forward_conditional(),
  do_forward_block(), do_kill_block(),
- remove do_backward_paragraph()
- add int eb_prev_paragraph(EditBuffer *b, int offset);
- dont call command on 0 universal prefix
2020-11-01 19:03:33 +01:00
Charlie Gordon
e1cd76cc3c Improve command argument parsing
- add CmdArgSpec structure for parse_arg()
- add argument type prefixes for defautl values:
  'm' prefix for CMD_ARG_USE_MARK, 'p' for CMD_ARG_USE_POINT
  'z' for CMD_ARG_USE_ZERO and 'e' for CMD_ARG_USE_BSIZE,
- rename parse_args as parse_arguments to avoid confusion with parse_arg
- make tabify-region and tabify-buffer call do_tabify()
- make untabify-region and untabify-buffer call do_untabify()
- move command argument specification to CmdDef:spec, followed by description string
2020-10-31 21:47:30 +01:00
Charlie Gordon
c6b3780622 Add command and variable descriptions:
- add command and variable description field
- add fuzzy completion on repeated TAB in minibuffer
- remove fuzzy_search variable
- add CompletionDef flags:
  - CF_FILENAME to use `/` as separator
  - CF_NO_FUZZY to prevent fuzzy matching on second TAB
  - CF_SPACE_OK to prevent SPC from completing entry
  - CF_NO_AUTO_SUBMIT to insert current match on ENTER
- fix invalid free on CommandDef structures
- improve symbol completion in eval-expression
- use symbol completion in apropos
- fix post increment and decrement evaluation
2020-10-24 12:44:23 +00:00
Charlie Gordon
cff2909ff0 Fixed small issues in qescript:
- fix memory leak in qe_cfg_append()
- fix potential buffer overflow in qe_cfg_format()
2020-10-22 08:53:41 +00:00
Charlie Gordon
e13fcfb543 remove trailing blanks 2020-10-21 15:01:52 +00:00
Charlie Gordon
41246b85cb prevent compilation warnings 2020-10-20 09:59:32 +00:00
Charlie Gordon
b42b318a81 renamed qscript.c as qescript.c 2020-10-20 08:48:20 +00:00
Renamed from qscript.c (Browse further)