Commit graph

30 commits

Author SHA1 Message Date
Charlie Gordon
94dac6e8cb archive: select tar on .taz and man on .roff 2017-05-03 08:04:08 +00:00
Charlie Gordon
0496b811d8 man-mode: recognise .man files that look like man page source files 2017-04-25 12:52:16 +00:00
Charlie Gordon
eacb2ad6e0 shell: major improvements in tty emulator
terminal emulator:
- add EditState.cols and EditState.rows: window dimensions in characters
- pass target window to new_shell_buffer()
- use window size for shell terminal emulator initial screen size
- set COLUMNS and LINES environment variables for child processes
- factorize emulator character output
- increase number of CSI arguments
- simplify and improve CSI m argument processing including
  multiple argument sequences
- minimal support for `:` as argument separator eg:
  \033[38;5;128:128:128m
- support erase line vt100 command:
  \033[K, \033[0K erase end of line
  \033[1K         erase beginning of line
  \033[2K         erase complete line
debugging:
- pass string argument to set-trace: on, off or list of trace indicators
- remove doctor command
- add QE_TRACE_EMULATE for emulator trace messages
- fix incorrect uses of eb_delete()
2017-04-21 14:44:14 +00:00
Charlie Gordon
1ee5b56846 updated TODO, dates 2017-03-06 12:54:49 +00:00
Charlie Gordon
99d739d166 archive: fix rule to uncompress .Z files 2017-02-25 19:34:28 +00:00
Charlie Gordon
b962e33ade updated copyrights 2016-03-06 19:53:06 +00:00
Charlie Gordon
1644b75cd6 archive: improve support for images
- add mode dependant shell flags
- add filter for bmp files with img2txt from libcaca package
- add filter for jpg files with jpg2a from libcaca package
- add filter for pdf files with pstotext from libcaca package
2016-03-06 17:04:26 +00:00
Charlie Gordon
f0aa3a4bd8 cosmetics: untabify, remove trailing spaces 2015-08-27 23:03:39 +00:00
Charlie Gordon
9331372a54 modes: upgrade mode selection and handling
- separate buffer and window specific mode data management, new API:
   QEModeData *qe_create_buffer_mode_data(EditBuffer *b, ModeDef *m);
   void *qe_get_buffer_mode_data(EditBuffer *b, ModeDef *m, EditState *e);
   QEModeData *qe_create_window_mode_data(EditState *s, ModeDef *m);
   void *qe_get_window_mode_data(EditState *e, ModeDef *m, int status);
   int qe_free_mode_data(QEModeData *md);
- make a list of buffer specific mode data areas so multiple major modes
  can co-exist in different windows for the same buffer
- add mode.mode_free callback to release buffer specific resources
- remove buffer.close callback
- shell state is now buffer specific shell_mode data
- clean up compress and archive mode
- show more buffer modes in buffer-list
- simplify edit_set_mode(), display error message on failure
2015-08-27 15:31:59 +00:00
Charlie Gordon
9014b3de79 buffers: clean up, add data_type_name
- rename raw_buffer_load1() to eb_raw_buffer_load1()
- rename log_reset() to eb_free_log_buffer()
- add buffer.data_type_name to display proper handler on modeline
2015-08-25 16:19:42 +00:00
Charlie Gordon
2131032cfd added handler for LHA archives 2015-07-30 17:51:08 +00:00
Charlie Gordon
9bb9f45fd6 autodetect sqlite databases from signature only 2015-06-08 07:01:30 +00:00
Charlie Gordon
4f6fe7836d added magic file type detection for archives
* added support for binary property lists on MacOSX
* added signature based file type detection for zip, sqlite, bplist
2015-05-09 22:08:49 +00:00
Charlie Gordon
d4dbf97234 small fixes in
* clear mode_name in modes derived from text_mode
* improved probing function for man-mode
2014-08-09 17:27:21 +00:00
Charlie Gordon
1350173bb9 select zip archiver for bbb blackberry backups 2014-06-01 18:00:24 +00:00
Charlie Gordon
0f697a54c0 favor archive mode over compressed mode 2014-06-01 13:50:43 +00:00
Charlie Gordon
5cbe28867e improve support for sql files and databases
* dump sqlite databases and syntax colorize output
* add keyword and type support in sql mode
2014-05-30 22:12:30 +00:00
Charlie Gordon
41005d5757 use qe_shell_subst instead of snprintf 2014-05-27 22:56:39 +00:00
Charlie Gordon
f527a58e18 add mode flags to specify different types of modes
* add  mode_flags as extra argument to qe_register_mode
* change all mode registration calls accordingly
2014-05-27 12:05:52 +00:00
Charlie Gordon
ba22305321 remove useless init_mode functions and empty command lists 2014-05-26 20:29:09 +00:00
Charlie Gordon
ccc963a4c5 use temp file for BinHex hqx compressed files 2014-05-13 09:34:46 +00:00
Charlie Gordon
db53f26499 fix archive and filtering commands
* fix reduce_filename for 7z archives and man pages
* add more man page extensions
* add more nroff head tests
2014-04-25 20:08:17 +00:00
Charlie Gordon
8e82d78124 fix filtering commands
* fix bug in http and ftp requests with embedded spaces and shell characters
* quote filename in man_buffer_load
* recognize nroff man pages starting with bare \"
2014-04-24 22:14:11 +00:00
Charlie Gordon
bb1fd8df88 use man mode for compressed SSL man pages 2014-04-17 17:24:19 +00:00
Charlie Gordon
b858880675 use man mode for compressed man pages 2014-04-17 17:21:01 +00:00
Charlie Gordon
1ea8739da2 add man mode
* add buffer loader for automatic conversion of man pages
* BUG: currently, this prevents editing of man page source files
  A-M cycles through buffer-modes but does not cycle buffer-load handlers
2014-04-17 17:16:57 +00:00
Charlie Gordon
4b6a5e267f handle *.tbz files as compressed tar archives 2014-04-04 15:32:11 +00:00
Charlie Gordon
ee690b2895 add support for web protocols: ftp, http, https
* add wget-mode to retrieve web contents via find-file
* add shell flags for buffer mode change upon download completion
* fix do_electric_filename to keep http:// prefix and such
2014-03-19 19:42:30 +00:00
Charlie Gordon
a2f3f6df48 fix c89 compilation 2014-03-10 01:51:11 +00:00
Charlie Gordon
93dbac129d Add archive and compress modes
* detect archives and list contents
* need to generalize dired mode to handle file extraction
* detect compressed files and uncompress on the fly
* need to implement file save with recompression
2014-03-03 23:56:49 +00:00