2001-08-21 v 0.1.13 * notepad.c: attempted to fix the pop-up menu so it doesn't call everything 'New File' all the time. Restored behaviour where it only calls the last file loaded 'New File', but this is still crap. 2001-08-10 * inane.1: added manpage, detailing syntax of the filetypes and bookmarks files. 2001-08-09 * notepad.c: added 'Close' button to beginning of popup menu to close currently selected file. 2001-08-04 v 0.1.12 * bookmarks.c, bookmarks.h: added beginnings of code for bookmarks. * toolbar.c: made bookmarks go in toolbar * xpm.h: split into toolbarxpm.h and bookmarkxpm.h * shellbar.c: added new entry box for manpage reading - takes [input] and does 'man [input] | col -bx' * forker.c: fixed bug where zero length output wasn't being caught properly * forker.c: made pipe_me() chdir to cur_dir before executing anything, so you can do ls -l and so forth * configure.in, acconfig.h: added checks for man and col * shellbar.h, shellbar.c: added #ifdefs so we attempt to correctly handle cases where man or col don't exist * menuitems.c, menuitems.h: reinstated menu_not_implemented() callback * menu.c: added code for bookmarks menu, with placeholders for add and edit bookmark * bookmarks.c, bookmarks.h: added menuname to bookmark_t struct so menu looks prettier. Also used in tooltip on toolbar. * filetype.c: fixed bug that was causing filetype reading to warn if too much whitespace came between options * filelist.c, filesel.c, filesel.h, forker.c, forker.h, shellbar.c: made output of executed commands pass label to notepad, including special label for the man bar - 'Output of [command] or '[input] manpage' * notepad.c, notepad.h: made load_textfile take an optional label to give the new page, to make above visible * bookmarks.c: added primitive 'add bookmark' feature, with check to make sure you don't add the same bookmark twice, updates both the toolbar and the menu, and a new file called 'bookmarks' in ~/.inane/, which is updated each time you add a bookmark * rcfile.c: added enumeration for what is about to be four files - bookmarks, inanerc, inanegtkrc, and filetypes. should merge these into one file or something. * fileutil.c: added crude routine to read xpm files, so bookmarks can use anything. indeed, now anything can use anything. * showmessage.c: added show_message_with_xpm * about.c: added mindblowingly silly logo to about box 2001-05-19 v 0.1.11 * fileutil.c: added is_reg_with_xtn routine to test for a regular file with a given extension * filetype.c: added pixmap and mask to app type struct, so file list can use and display it if present; made add_app load icon if possible * filelist.c: added code to display different icon for known filetypes - uses default 'special' icon if type doesn't supply one * inane.c: set win_main earlier and realised window earlier so we can allocate pixmaps properly in filetype.c * menu.c: removed setting of win_main * filetree.c: removed auto-expand of first tree node, since it no longer displays properly - something to do with window already being realised I think * fileutil.c: changed file_size to file_size_str for clarity, and fixed silly bug where multi-meg files being rounded to integer weren't displayed properly * filetype.c: made altapps a GPtrArray, and extra an int holding a bunch of bitwise flags - currently we have one only, for apps whose output we want to capture (such as unzip -l...) * filelist.c: added code to check extra flags and capture output from app if asked to * filetype.c: implemented cascading rulesets, with scope for other rules than 'is in or under directory' (currently the only rule implemented) * filetype.c, forker.c: added code to mangle filenames (strip directory and strip extension), so apps like xmame that can't cope with full paths to zipfiles will still work... * fileutil.c: made TEMP_DIR use g_get_tmp_dir, so it looks for env vars TMPDIR, TMP and TEMP before defaulting to /tmp * filetype.c, fileutil.c: fixed bug where extensions shorter than match were being falsely matched 2001-05-14 v 0.1.10 * forker.c: removed fork code from filelist.c and put here * filetype.c: file types and apps now seperated from one another properly, with space for stuff like per-action icons and cascading rulesets for file extensions * filetype.c, rcfiles.c: now loads and saves filetype file, creating it if necessary * forker.c: now use execl not execlp since I'm not happy about this PATH searching business, and doesn't try to use NULL flags * filetype.c: fixed bug where only three letter extensions were understood * notepad.c: made text widgets use wordwrap by default * fileutil.c: made is_readonly handle group membership properly, so group writable files not owned by user are not opened read-only * forker.c: added code to run a command with popen and return output * filelist.c: made executable files runnable on double click - action order is knowntypes>executables>textfiles * filelist.c: added cogwheel icon for executable files * notepad.c: added default file-list popup menu for notepad pages * shellbar.c: added 'execute shell command' entrybox - output appears in new temp file, if command is permitted * forker.c: made run_executable pop up window if output was zero length rather than opening empty temp file * configure.in: ran autoscan and added some stuff - still haven't fixed the non-GNU glob problem though * filelist.c: made systems without st_rdev cope. i think. * inane.c: put #ifdef round sys/wait.h and made return type of signal handler RETSIGTYPE. still works. hrm. * fileutil.c: won't try and call mkdir unless HAVE_MKDIR set * filelist.c: checks for HAVE_STRERROR before calling it, for HAVE_DIRENT_H before including it * filelist.c, fileutil.c, forker.c: now check for HAVE_UNISTD_H before including. but what happens if it isn't there? * configure.in, config.h.in: added test for GNU glob.h, and created acconfig.h appropriately * fileglob.c: added absurd ifdef so we still run on machines with no glob.h * filelist.c: fixed nasty bug when viewing new directory in multi- selection mode - now forces single selection again 2001-05-05 v 0.1.9 * filetree.c: fixed bug where doing glob before ever selecting anything caused crash * ChangeLog: fixed syntax, tried to map all notes to files, but this may not be ever so accurate. * locbar.c, menuitems.c, filesel.c, filelist.c: making cur_dir a typedef not a string, so we can add info, eg size, number of files * filelist.c: made update_list report number of files and total size in statusbar * fileutil.c, filelist.c: made filesize be reported in bytes, K or M, depending on size, to 1dp of accuracy for K or M * filetree.c: fixed collapse_tree bug * fileutil.c: added generic load_file function * notepad.c: removed file i/o code from load file, now use generic function * notepad.c, filetype.c, inane.h: made debugging messages only appear if debugging flag set * showmessage.c: removed spurious g_prints from ok dialog code * fileutil.c: added wrapper round mkdir * rcfile.c, rcfile.h: moved ~/.inanerc to ~/.inane/.inanegtkrc, with check to create directory if not present on startup * gui_options.c, rcfile.c: added ~/.inane/.inanerc file to handle non gtkrc style options. all options can now be saved and restored * fileutil.c, notepad.c: moved code from notepad.c to is_readonly() function in fileutil.c * filetree.c: removed call to stat, use fileutil.c is_directory() instead 2001-04-29 v 0.1.8 * fileglob.c: Added beginnings of file filter using glob(3) * locabar.c: Added interface to glob through location bar * gui_options.c: Added option to show or hide dotfiles * filetree.c: Made show/hide dotfiles apply to tree as well as filelist * filetree.c: Fixed ensuing bug when searching for nonexistent dotfile in tree * Makefile: Turned on copious compiler warnings. Much now to fix. * all: Fixed everything to compile with no warnings 2001-04-28 v 0.1.7 * filetype.c: Added primitive notion of file types * filetype.c: Added support for jpg, gif and xpm types, mapped to gqview * filelist.c: Made symlinks to directories clickable to follow link * filelist.c: Made symlinks to regular files clickable too * notepad.c: Put text widget in notebook * notepad.c, menu.c, menuitems.c: Made New add new empty unnamed file to notebook * notepad.c, menu.c, menuitems.c: Open open file in notebook or raise file if already loaded * notepad.c, menu.c, menuitems.c: Implemented Close file, with ok dialog to double check unsaved file closures * notepad.c, menu.c, menuitems.c: Implemented Close All and Save All * notepad.c, menu.c, menuitems.c: Fixed coredump when selecting Restore Options with no text file loaded * filesel.c: Fixed various bugs with selecting filename * filesel.c: Added code to handle case when user tries to save file with the same name as another file that is already loaded (for now can't) * all: Generally cleaned up code a lot * fileutil.c: Fixed bug where textfiles couldn't be zero length 2001-04-26 v 0.1.6 * gui_options.c: Made text widget update colours properly when changed in options dialog. 2001-04-24 * filetree.c: Fixed segfault bug where filetree collapse destroyed selection * filelist.c: Made links to links display differently * filelist.c: Made Ctrl or Shift turn on multiple selection mode, and Esc return to single selection mode * filelist.c: Made shadow mode on clist toggle with selection mode * gui_options.c, notepad.c: Implemented options to change colours and font 2001-04-23 * filelist.c: Fixed bug where perms string wasn't properly null terminated * filelist.c: Made symlinks show what they link to by default * filelist.c: Made links to files display different icons * filelist.c: Added DONT_FORK flag in inane.h for paranoid compile environments * filelist.c: Added error icon for display if error occurs in filelist * filelist.c: Made links to pipes, sockets, block devices and char devices display differently 2001-04-21 v 0.1.5 * filelist.c: Made file list multiple selection * filelist.c: Added rough hack to send multiple selections to fork * filelist.c: Added rough hack to play mp3s in xmms, once forked * gui_options.c: Added basic options dialog * menuitems.c, gui_misc.c: Right justified Help menu item * menuitems.c: Removed spurious 'Import RTF' item * gui_options.c: Made home directory settable through menu. This was pointless. * notepad.c: Set text widget font * gui_options.c: Made text font settable through options * notepad.c, gui_options.c, rcfile.c: text colours through resource file * notepad.c: text widget detect readonly files and set widget insensitive if so * fileutils.c: Fixed bug where IsTextFile tried to fopen non-regular files * rcfile.c: Added rudimentary code to create ~/.inanerc if not found * notepad.c, gui_options.c: Part fixed readonly colours bug * gui_options.c: still can't change whole text widget background, though, so background readonly colour and background normal colour must be the same... * gui_options.c: Added save options feature to update ~/.inanerc * gui_options.c: Added restore options feature to reload data from ~/.inanerc * rcfile.c: Made ~/.inanerc begin with default values from local gtk * rcfile.c: Added hack to force selection of existing font on ~/.inanerc creation 2001-04-19 v 0.1.4 * filelist.c: Made size column sort numerically * filelist.c: Made other numeric columns do same * filelist.c: Made perms display like ls * filelist.c: Made columns justify properly * filelist.c: Added icons to file list 2001-04-17 v 0.1.3 * statusbar.c: Added statusbar for editor, editor no longer puts filename in title * notepad.c: Fixed some bugs in the 'unsaved' file message handling * locbar.c: Added location bar for current directory * filetree.c: Fixed many bugs in filetree * filelist.c: Made directories clickable (on right) to select directory on left * Pressing enter in location bar selects that directory if it exists * toolbar.c: Added button to go to home directory * notepad.c: Made save file default to current directory of file, current directory in browser, or home directory if nothing selected 2001-04-16 v 0.1.2 * filelist.c: path removed from filename in list * filetree.c: path removed from filename in tree * filelist.c: filelisting now reports atime, ctime and mtime properly * filelist.c: filelisting now reports user and group name, not number unless user or group name doesn't exist. then number. * filelist.c: mode now reported in octal, so is semi *comprehensible * filelist.c: now use lstat not stat to report symlinks properly * filelist.c, filetree.c: file list now autosorts. file tree now also sorted. * filelist.c: double clicking on a textfile now loads it. oh joy. * notepad.c: added weak notion of unsaved file. still lets you quit though. * filelist.c: added basic notion of arbitrary column sorting * filelist.c: hid a few columns in filelist 2001-04-15 v 0.1.1 * menuitems.c: Save As implemented * gui_misc.c: Filename appears in titlebar * toolbar.c: Added Save toolbar button * menuitems.c: Fixed bug where New failed to clear filename * main.c: horizontal dragbox, put notepad in RHS * filetree.c: basic file tree in LHS * filelist.c: basic file listing on RHS * all: autoconf/automake/configure type installation 2001-04-14 v 0.1 * all: basic functionality, eg I typed out the notepad app from the Harlow Linux Apps book