Commit graph

943 commits

Author SHA1 Message Date
Charlie Gordon
004e173dee shell-script-mode: small improvements
- more explicit sh-bang support
- support $'This is a quote: "\'"' syntax
- better match for keywords
- keywords introduce command state except for, case, export and in
2017-03-28 12:50:30 +00:00
Charlie Gordon
5ad42a0dc3 shell-script-mode:
- renamed script-mode to shell-script-mode
- merged patch by Hadrien Lacour
- improve parsing, recognise names, keywords, meta-characters, substitutions...
- add flexibility in forward-block (M-C-f) and backward-block (M-C-b) to
  match block delimiters with non default styles
2017-03-28 06:33:29 +00:00
Charlie Gordon
d06fdbfd14 basic: changed API for popup windows
- pass current window to show_popup()
- remove show_ptr argument from new_help_buffer()
- call show_popup() unconditionally
- add int eb_vprintf(EditBuffer *b, const char *fmt, va_list ap);
2017-03-26 15:57:24 +00:00
Charlie Gordon
5118c5e482 ignore some temporary files 2017-03-25 18:16:32 +00:00
Charlie Gordon
c5a3bb8ecb updated heading 2017-03-25 18:14:59 +00:00
Charlie Gordon
dc0db62312 utilities: sundries 2017-03-25 18:13:32 +00:00
Charlie Gordon
67e50a2511 arm: use to_hex instead of local function 2017-03-25 18:09:50 +00:00
Charlie Gordon
a449fe3c23 simplified to_hex() 2017-03-25 18:07:18 +00:00
Charlie Gordon
24769141f4 updated headings 2017-03-25 18:04:51 +00:00
Charlie Gordon
91d842618f modes: add less mode for .less files
- rename all popup related mode functions from less_* to popup_*
- add less-mode for .less files (preprocessor for css files)
- add FILE to list of C types
2017-03-25 18:00:52 +00:00
Charlie Gordon
7e27ea3c66 C-x C-m finds the most recently used process buffer 2017-03-25 17:49:39 +00:00
Charlie Gordon
2d59865702 charset: default to mac-roman for non utf-8 files with old style mac eol 2017-03-22 17:13:10 +00:00
Charlie Gordon
34a4da48b2 files: add -1 (--single-window) command line option
- add command line options to prevent window splitting
2017-03-20 18:43:33 +00:00
Charlie Gordon
5020243384 unihex: fix display problems
- fix invalid widths in unicode_width.h
- avoid setting s->offset to invalid values in hex.c
- update s->unihex_mode on the fly if larger code-points are displayed
- display code-points with at least 4 hex digits
- compute default s->dump_width more accurately
2017-03-19 15:39:25 +00:00
Charlie Gordon
96f51a84c5 unicode: updated width table 2017-03-19 13:24:06 +00:00
Charlie Gordon
7a8065c5a8 extras: improved compare-windows
- add static int qe_skip_comments(EditState *s, int offset, int *offsetp);
- add static int qe_skip_spaces(EditState *s, int offset, int *offsetp);
- add state variable ignore-comments
- C-u A-= toggles ignore-spaces
- C-u C-u A-= toggles ignore-comments
- C-u 2 0 A-= toggles ignore-spaces and ignore-comments
- compare-windows status messages document ignored stuff
2017-03-19 13:20:34 +00:00
Charlie Gordon
12a44b104e clang: fix alignment bug on ternary operator 2017-03-18 14:24:47 +00:00
Charlie Gordon
0d630448db shell: handle C-t and M-t at shell prompt 2017-03-18 14:13:33 +00:00
Charlie Gordon
0f4285bfec shell: add support for word case changing commands 2017-03-17 16:28:04 +00:00
Charlie Gordon
3a65d1143a display: fix single accent curor position 2017-03-17 16:26:16 +00:00
Charlie Gordon
a63aff6f3e fixed compilation on stack Debian 2017-03-16 17:18:29 +00:00
Charlie Gordon
74be7bcc22 update TODO file 2017-03-16 09:35:28 +00:00
Charlie Gordon
26fd39d9e0 unicode: improve support for wide and combining code points
- qe_isaccent() recognises all combining code points (to be refined)
- add computer generated width table unicode_width.h
- display difference in hex in compare-windows to distinguish
  space and nbsp, normal and combined form for accented letters.
- display multiple combining code points in what-cursor-position (C-x =)
- attach combining code points to preceeding space in display_char_bidir
- handle accents specificaaly in flush_fragment
- handle combining code-points in screen backstore via indirection table
  this transient table can be inspected via describe-screen
2017-03-16 09:16:31 +00:00
Charlie Gordon
ec07d5aec8 basic: charset improvements
- add QECharset.encode_table as a default for CharsetDecodeState.table
- make CharsetDecodeState.table const
- use static initializers for utf8 tables
- add al32utf8 charset name (used in Oracle for true utf-8 encoding)
- use direct pointers in unicode_glyph_range_index
- initialize unicode_glyph_range_index at run time
- rename unicode_glyph_tty_width as unicode_tty_glyph_width
- changed unihex display to space out single width characters
2017-03-15 23:42:23 +00:00
Charlie Gordon
252e2848ab basic: fix potentially invalid shifts
- use unsigned arithmetics to avoid implementation-defined behavior
  on (1 << 31)
2017-03-15 23:17:58 +00:00
Charlie Gordon
22594638fb unihex: fix crash bug
- fix crash bug in initialization code
- prevent display of invalid code points
2017-03-15 07:38:58 +00:00
Charlie Gordon
063801372c file: improve qe_load_file API
- pass flags as bit mask for:
  kill_buffer, load_resource, cwd_relative, split_window
- fix bug with multiple files on command line from different directories
2017-03-15 07:32:48 +00:00
Charlie Gordon
38fdd559f5 display: improve display structure handling
- add QEDisplay.dpy_describe handler
- rename dpy_init as screen_init
- allocate TTYState instead of using static struct in tty.c
2017-03-15 07:24:31 +00:00
Charlie Gordon
2f400723b0 perl: improve colorizer
- add perl_keywords and perl_types
- add _ as variable name character
- comments
2017-03-06 12:59:36 +00:00
Charlie Gordon
1ee5b56846 updated TODO, dates 2017-03-06 12:54:49 +00:00
Charlie Gordon
ae68f6ec34 clang: improve auto-indentation
- fix auto indent at end of file
- remove blanks at end of line in c-newline
2017-03-06 12:53:53 +00:00
Charlie Gordon
8573982c12 basic: improve goto-line and goto-char and next-mode
- handle size suffixes kmg and KMG
- split qe_find_target_window() for next-mode and find-file
  from a dired left pane
2017-03-02 15:21:16 +00:00
Charlie Gordon
62c9bc9f34 added more TODOs 2017-02-25 19:44:30 +00:00
Charlie Gordon
983bef5bcc basic: show error message if load-resource-file fails 2017-02-25 19:39:49 +00:00
Charlie Gordon
4f9f90b269 extras: fix backward-level at end of comment 2017-02-25 19:38:38 +00:00
Charlie Gordon
60d2653cd0 shell: fix column number parsing for next-error 2017-02-25 19:37:18 +00:00
Charlie Gordon
99d739d166 archive: fix rule to uncompress .Z files 2017-02-25 19:34:28 +00:00
Charlie Gordon
ef6310eec1 config: fix haiku compilation
- move local variable definition to start of block (patch by Francois Revol)
2017-01-31 21:38:02 +00:00
Charlie Gordon
56a0b95bc4 config: fix window context for .qerc files fix code fragment coloring
- save and restore qs->active_window around .qerc config file parsing
  and set qs->active_window to target window for attribute setting.
2017-01-31 20:22:13 +00:00
Charlie Gordon
917cf43abb markdown: fix code fragment coloring
- code fragments introduced with the ``` syntax can now be indented
2017-01-31 20:18:55 +00:00
Charlie Gordon
6a7ac743a4 shell: fix crash on large process output
- fix `eb_fgets()`: used to return out of bound length.
2017-01-03 04:55:24 +00:00
Charlie Gordon
f4a41519b6 search: sundries 2017-01-02 11:39:07 +00:00
Charlie Gordon
2c921d7c1a search: extensions
- add `delete-matching-lines`
- move search command definitions to search.c
2017-01-02 11:30:09 +00:00
Charlie Gordon
5e8c4b023d shell: colorize file fragments from compilation and grep
- add `offset` member in `QEColorizeContext` structure
- add `ModeDef *qe_find_mode_filename(const char *filename, int flags);`
- make `combine_static_colorized_line` public
- add public function `shell_colorize_line`:
  detect file fragments with filename followed by `:` without space at bol
  special case clang errors that display the file contents after the line
- special case `shell_colorize_line` for static color combination scheme
2017-01-01 15:40:46 +00:00
Charlie Gordon
79bbfb27c3 markdown: fix language detection for C# and C++ 2017-01-01 15:33:18 +00:00
Charlie Gordon
23bfd2ea69 basic: C-l twice recenters the window 2017-01-01 12:51:22 +00:00
Charlie Gordon
0f1d2244e7 basic: improve config file handling
- add `add-resource-path(string)` to add a new resource directory
- bind `load-file-from-path` on C-c C-f
2016-12-31 18:45:08 +00:00
Charlie Gordon
bfe0b5f528 dired: only output previewing message from filelist 2016-12-31 11:29:38 +00:00
Charlie Gordon
dee4908fe8 display: disable broken bidir display 2016-12-31 11:28:41 +00:00
Charlie Gordon
f4c1b633a9 search: improvements
- C-u C-s selects regex searching (not yet implemented)
- `do_isearch()` takes extra argument for argval
- cycle hex and unihex isearch modes on M-C-b instead of C-b and M-b
- toggle regex incremental searching on C-t and M-r
- C-j no longer needs quoting in isearch
- no longer keep lingering search matches after search exits
2016-12-31 11:25:25 +00:00