summaryrefslogtreecommitdiff
path: root/src/file.cc
AgeCommit message (Collapse)Author
2014-11-17Remove unneeded string copiesMaxime Coste
2014-11-12Cleanup includesMaxime Coste
2014-10-30Add kak binary location to PATH env var automaticallyMaxime Coste
That way the kak binary can be guaranteed to be available even if not in user PATH.
2014-10-22Close fd before notifiying buffer of modification when writing to fileMaxime Coste
2014-10-19Add a split function that does not take an escape and returns StringViewsMaxime Coste
When an escape character is not present, split can just return sub strings of the parameter, so we can avoid duplicating the original string data.
2014-10-13Do not assert on SIGTERM and backup modified buffers on signal induced ↵Maxime Coste
termination
2014-10-13Refactor regex uses, do not reference boost except in regex.hhMaxime Coste
2014-08-18Do not escape completions in completer functions let the client decideMaxime Coste
Fixes #231
2014-08-15Add support for reading from stdin/writing to stdout in filter modeMaxime Coste
Note that kakoune still needs to read the whole buffer first, only once stdin is closed can it execute the keys.
2014-08-11Add an operator[](CharCount) to String and StringViewMaxime Coste
2014-07-30Rewrite real_path, try to find an existing directory in the given pathMaxime Coste
Never throw, return the given filename in the worst case.
2014-06-29Canonicalize filenames when checking if a buffer was written to its fileMaxime Coste
2014-05-11String::substr now returns a StringViewMaxime Coste
2014-04-30file.cc: try more portable use of struct stat::st_mtimeMaxime Coste
2014-04-24Cache commands in complete_commandsMaxime Coste
Iterating through all directories in path to find commands can end up quite slow, so cache the result per directory and update it only if the directory modification time changed.
2014-04-21use StringView::zstr() in place of StringView::str().c_str()Maxime Coste
2014-04-18Use StringView for file functionsMaxime Coste
2014-04-18Use StringView for completion functionsMaxime Coste
2014-04-11Use stat when listing files so that link to directories are handled as ↵Maxime Coste
directories
2014-04-06Code cleanup in list_filesMaxime Coste
2014-04-05Fix crash caused by attempting to close a nonexistent DIR*Jimmy Thrasher
2014-03-26notify buffer saved after closing the file descriptorMaxime Coste
2014-01-03Add support for absolute paths in find_fileMaxime Coste
fixes #11
2013-12-23Add complete_command for completing commands in PATHMaxime Coste
use it for pipe completion
2013-12-11Add BufWritePre and BufWritePost hooksMaxime Coste
2013-10-21Add Buffer::reload for reloading buffers without loosing options and hooksMaxime Coste
2013-10-17More robust Buffer filesystem timestamp handlingMaxime Coste
2013-10-15Detect file external modification and ask the user whether to reload or notMaxime Coste
* Buffer now store a m_fs_timestamp field. * Client in Normal mode checks current buffer file every 500 ms, or each time it goes back to Normal mode.
2013-09-24complete_filename fallback on subsequence completion if prefix does not workMaxime Coste
2013-09-23Add prefix_match function and use it instead of adhoc codeMaxime Coste
2013-07-26memoryview: always pass by valueMaxime Coste
2013-06-19add missing errno include to file.ccMaxime Coste
2013-06-06Buffer: remove line_length and replace line_content with operator[]Maxime Coste
2013-04-29fix bug in compact_pathMaxime Coste
2013-04-26fix handling of ~ in filenames so that :edit ~ does not open a file named '~'Maxime Coste
2013-04-10Use the buffer manager to delete buffer, throw when a client is insertingMaxime Coste
2013-04-09sort includes directivesMaxime Coste
2013-03-25Always use absolute path for file buffer names, compact paths for displayMaxime Coste
2013-03-22use canonicalized filenames for buffersMaxime Coste
2013-03-21BufferManager: replace Buffer* get_buffer with Buffer& get_bufferMaxime Coste
2013-03-14add support for regex options, make ignored_files oneMaxime Coste
2013-03-13move complete_filename to file.ccMaxime Coste
2013-03-13find_file: automatically add missing '/' and end of pathsMaxime Coste
2013-03-05Strongly typed options supportMaxime Coste
* non builtins options require declaration using the decl command * At the moment, only int and string options are supported, however the goal of this change is to provide a consistent way to support more complex options, namely lists and booleans
2013-02-27Add 'gf' (goto file) functionalityMaxime Coste
2012-12-05fail nicely when trying to open a directoryMaxime Coste
2012-11-26fix crlf file readingMaxime Coste
2012-11-23rewrite file opening code using mmap, opening big files is much much fasterMaxime Coste
2012-11-22rename (hook|option)_manager to (hook|option)s.Maxime Coste
And Global(Hook|Option)Manager to Global(Hook|Option)s
2012-11-21Buffer: replace reset_undo_data with a NoUndo flagMaxime Coste