Commit graph

1,068 commits

Author SHA1 Message Date
Charlie Gordon
3d58d4f0dd Improve buffer-list
- fix current position issues in popup buffer list
2020-11-06 23:08:53 +01:00
Charlie Gordon
e2c2a3f8c2 fix mailing list webpage reference 2020-11-06 09:56:31 +01:00
Charlie Gordon
f4316de741 Improve buffer-list
- add sorting options
- add description strings
- remove selection command bindings
- remove bufed-next-line and bufed-previous-line,
  just bind to text-mode commands
2020-11-05 14:32:17 +01:00
Charlie Gordon
a998f8bca8 Miscellaneous improvements
- fix typos and presentation in markdown documentation
- split binary- and hex-mode commands and bindings
- hex-mode inherits bindings from binary-mode (remove explicit bindings)
- enabled word movement in binary and hex modes
2020-11-05 13:39:05 +01:00
Charlie Gordon
8ac9061fc8 move TODO.org to markdown format as TODO.md 2020-11-04 00:52:03 +01:00
Charlie Gordon
1eb57c06b2 commented some limitations 2020-11-04 00:51:20 +01:00
Charlie Gordon
b446926c31 Add bazel and protobuf modes
- add description string in ModefDef structure
- match file extension in markdown code block tag handling
- add bazel mode: python based build system
- add protobuf: google protocol buffer specification files
2020-11-03 09:27:49 +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
6a50b76644 Improve file and buffer completion, fix some inconsistencies
- fix completion bug where highlighted region was not removed upon enter
- add file_print_entry() in dired.c to display file size in file completion popup
- add buffer_print_entry() to display filename in buffer completion popup
- small fixes
- rename many C functions to match corresponding command name:
  do_return -> do_newline, do_quote -> do_quoted_insert,
  do_start_macro -> do_start_kbd_macro, do_end_macro -> do_end_kbd_macro,
  do_call_macro -> do_call_last_kbd_macro,
  minibuf_complete_scroll_up_down -> do_minibuffer_scroll_up_down,
  do_shell_return -> do_shell_newline, do_compile_error -> do_next_error,
  do_incr_width -> do_increase_width
- add do_open_line as a separate function
- simplify hex and binary mode navigation functions
- do_overwrite_mode(arg) disables overwrite mode if arg <= 0
- fix universal argument parsing for M-0 to M-9 and other subtle details
2020-10-28 23:49:09 +01:00
Charlie Gordon
b9dd2b93b0 Improve completion system
- fix completion bug where highlighted region was not removed upon enter
- add file_print_entry() in dired.c to display file size in file completion popup
- add buffer_print_entry() to display filename in buffer completion popup
- small fixes
2020-10-27 08:38:12 +01:00
Charlie Gordon
aa2903be8f improve README.md 2020-10-26 07:55:07 +01:00
Charlie Gordon
5dda71b3d9 pass C-r and C-s to shell in interactive mode 2020-10-26 07:54:56 +01:00
Charlie Gordon
c6b4d90b80 Initial post on github
- renamed README as README.md and improved description
2020-10-24 23:59:54 +02: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
063c98dcd7 Improve buffer sorting:
- add SF_PARAGRAPH to sort multiline paragraphs
- sort commands and variables in print_bindings(), apropos(), about_qemacs()
- split buffer sorting code from do_sort_span() to eb_sort_span()
2020-10-24 08:04:30 +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
90487345a1 Improve colorization
- add cur_pos in QEColorizeContext to track cursor position if on current line
- highlight trailing blanks except before the cursor
2020-10-21 23:22:25 +00:00
Charlie Gordon
e13fcfb543 remove trailing blanks 2020-10-21 15:01:52 +00:00
Charlie Gordon
2c85e017fd Improve colorization
- add QE_STYLE_BLANK_HILITE style for extra blanks at end of lines
- add MODEF_NO_TRAILING_BLANKS flag to control this feature on a mode basis
- add -nc (--no-crc) command line option du disable CRC based update cache
- add disable-crc global variable for the same purpose
- fix termios c_oflag flags in raw mode
2020-10-21 09:55:01 +00:00
Charlie Gordon
0735453f67 add require keyword in lua-mode 2020-10-21 09:51:40 +00:00
Charlie Gordon
41246b85cb prevent compilation warnings 2020-10-20 09:59:32 +00:00
Charlie Gordon
43448c64c3 fix gcc compile warnings 2020-10-20 09:38:20 +00:00
Charlie Gordon
b42b318a81 renamed qscript.c as qescript.c 2020-10-20 08:48:20 +00:00
Charlie Gordon
00fd3fb644 shell: temporary fix for backscroll in less command 2020-10-20 08:44:46 +00:00
Charlie Gordon
c8414744e0 sundries 2020-10-18 09:23:34 +00:00
Charlie Gordon
d0b9f3dad4 bumped copyrights on modified files 2020-10-17 21:09:49 +00:00
Charlie Gordon
6e0564d4ed Improve completion system
- pass CompleteState to print_entry() handler
- remove list_get_colorized_line()
- remove get_colorized_line() window handler
- add colorize_mode along with colorize_func
- add list_display_hook() to fix list mode navigation
- rename generic_get_colorized_line() as get_colorized_line()
- fix memory leak in eb_add_property()
- pretty print tags in tag_complete() and list_tags()
2020-10-17 20:55:47 +00:00
Charlie Gordon
9d967ad29c Improve completion system
- rename and extend CompletionEntry as CompletionDef
- create xxx_completion CompletionDef structures
- rename xxx_completion() functions to xxx_complete()
- register CompletionDef structs with qe_register_completion()
- add (start, end) range in CompleteState
- use eb_puts() and eb_putc() instead of eb_printf()
- simplify eb_delete_chars()
- ignore left pane in compare-windows()
- simplify qe_list_bindings()
- improve command and variable completion popup
2020-10-17 15:41:31 +00:00
Charlie Gordon
2fa0120472 add more advanced scripting language parser: qscript 2020-10-14 23:32:03 +00:00
Charlie Gordon
2e10113f01 add pstrncat 2020-10-14 23:27:41 +00:00
Charlie Gordon
2aaabb719c scripting issues:
- always pass universal argument as last argument
- change do_compile_error() accordingly
- pass universal argument to do_eval_expression()
2020-10-13 07:14:17 +00:00
Charlie Gordon
436a0b2c60 remove committed files from .cvsignore 2020-10-09 00:06:39 +00:00
Charlie Gordon
49a1c1275b style and color fixes:
- document default styles
- skip_blanks() returns the next character
- simplify minimal parser
- handle multiline comments in config files
2020-10-09 00:00:55 +00:00
Charlie Gordon
aecdcf067c remove obsolete dependencies 2020-10-08 22:32:56 +00:00
Charlie Gordon
6941fb03e7 added macros for default configuration settings:
- #define DEFAULT_TAB_WIDTH  4 /* used to be 8 */
- #define DEFAULT_INDENT_WIDTH  4 /* used to be 8 */
- #define DEFAULT_FILL_COLUMN  70
2020-10-04 23:57:11 +00:00
Charlie Gordon
1a2fdd3b60 update to version 2.26 2020-10-04 23:53:39 +00:00
Charlie Gordon
123c26d568 update to version 2.26 2020-10-04 23:50:30 +00:00
Charlie Gordon
4e5435056d add colorizers for txl, nim, rebol, elm, jai, ats 2020-10-02 21:32:29 +00:00
Charlie Gordon
184c3efd82 clang: many improvements
- add V language support
- add C99 and C11 keywords
- improve regex detection
- detect formfeed as resetting identation
- improve indentation algorithm
- fix Allman style
- improve js identifier parse (handle unicode characters)
2020-10-02 20:57:51 +00:00
Charlie Gordon
85ce662732 extra-modes: small improvements
- simplify style setting for asm
- add RapydScript as a Python flavor
- add Tiger language support
2020-10-02 20:39:38 +00:00
Charlie Gordon
f03be46035 arm: small improvements
- improve comment handling
- autodetect `;` comments if `;` at start of line
2020-10-02 20:31:14 +00:00
Charlie Gordon
cf8f4e4c5a add column and basename sort options 2020-10-02 20:26:21 +00:00
Charlie Gordon
cdbec6592b improve filelist_display_hook filename extraction 2020-10-02 20:18:26 +00:00
Charlie Gordon
0dd16fb25e shell: small improvements
- refine C-O interactive switch
- fix disable shell_get_curpath lookup on comments
2020-10-02 20:16:09 +00:00
Charlie Gordon
b09618c138 update recent section 2020-10-02 20:09:18 +00:00
Charlie Gordon
b5c2533adc add .ls9 extension 2020-10-02 20:08:12 +00:00
Charlie Gordon
4a5dbc44df add break keyword 2020-10-02 20:06:44 +00:00
Charlie Gordon
785bb524ab fix off by one bug, missing * 2020-10-02 20:06:02 +00:00
Charlie Gordon
7535edb6f5 add .ico extension 2020-10-02 20:04:23 +00:00