summary refs log tree commit diff stats
path: root/Makefile
Commit message (Expand)AuthorAgeFilesLines
* Makefile: Don't fail build when py.test is not installedhut2016-02-281-1/+8
* tests: add a dummy pytest test and add it to the make test stepLaurent Charignon2016-01-311-0/+1
* Neater copyright headerhut2015-03-191-2/+2
* Makefile: quote a variablehut2015-02-071-1/+1
* update email addresshut2014-12-111-1/+1
* fix references to README.mdhut2014-08-221-1/+1
* Makefile: allow selecting files for "make test" by setting $FILTERhut2014-02-031-1/+2
* Changed email address in source codehut2013-08-081-1/+1
* Revert "Added bumblebee-like "make uninstall""hut2013-04-021-7/+0
* Added bumblebee-like "make uninstall"hut2013-04-011-0/+7
* Makefile: Fix regex of 'make clean'hut2013-03-011-1/+1
* updated rest of the copyright noticeshut2013-02-221-1/+1
* update email address (romanz@lavabit.com -> hut@lavabit.com)hut2013-02-221-1/+1
* doc/rifle.1: Added man page for riflehut2013-02-181-0/+4
* Makefile: Add python3.3 to the list of python versionshut2013-01-281-2/+2
* Makefile: "make dist" instead of "make snapshot"hut2013-01-281-1/+3
* Makefile: use python2.7 toohut2012-10-181-1/+1
* test rifle when running "make test"hut2012-04-131-1/+1
* shorten all copyright messages for better readabilityhut2012-03-141-13/+1
* Makefile: Added info about DESTDIR in "make options"hut2011-10-291-0/+1
* Makefile: Fixed "PHONY" stuffhut2011-10-291-1/+1
* Updated copyright headershut2011-10-101-1/+1
* Makefile: Fixed doctests for python3.2hut2011-10-081-1/+1
* Makefile: added `make test' back in.hut2011-10-071-1/+9
* Makefile: updatehut2011-10-051-4/+8
* Makefile: added "make todo" and added some notes in codehut2011-10-051-1/+4
* updated Makefilehut2011-09-291-1/+2
* removed tests. (half of them are outdated)hut2011-09-281-9/+1
* extended manpage and fixed {load,save}_copy_buffer commandshut2011-09-251-0/+3
* Overhauled manpage. It's in POD format now.hut2011-09-241-1/+5
* Makefile, setup.py: Fixed `make doc`hut2010-09-111-1/+0
* Makefile: simplificationhut2010-06-241-1/+1
* make doc: minor cleanup and fixhut2010-06-211-2/+2
* commited pydocs are author agnosticshpelda2010-06-211-1/+2
* INSTALL: changed logname from uninstall_info to install_log.txthut2010-06-181-1/+1
* Removed built-in support for uninstalling.hut2010-06-181-5/+4
* Rewrote INSTALL and "make (un)install"hut2010-06-181-2/+12
* Makefile: removed functions which are now handled by setup.pyhut2010-06-181-51/+4
* make snapshot: prefix ranger-$VERSION/ in archiveshut2010-06-141-1/+1
* make install: Fixed script for finding PYTHON_SITE_DESThut2010-06-141-2/+6
* Makefile: dynamically get the version numberhut2010-06-091-1/+1
* simplified all_tests.py, moved to test/hut2010-06-071-2/+2
* make bm, make test: make use of PYTHON variablehut2010-05-251-2/+2
* make: replace literal python with $(PYTHON)hut2010-05-171-1/+1
* make: added DESTDIR to Makefilehut2010-05-171-9/+9
* Makefile: updatedhut2010-05-101-9/+12
* Added license header to a few fileshut2010-05-041-0/+15
* Makefile: added `make bm` to run all benchmarks BMCOUNT timeshut2010-05-031-2/+5
* Makefile: cleaned up, added automatic uninstallhut2010-05-031-58/+57
* make clean: fixedhut2010-04-071-1/+1
re.""" if self.bookmarks is None: if ranger.arg.clean: bookmarkfile = None else: bookmarkfile = relpath_conf('bookmarks') self.bookmarks = Bookmarks( bookmarkfile=bookmarkfile, bookmarktype=Directory, autosave=self.settings.autosave_bookmarks) self.bookmarks.load() else: self.bookmarks = bookmarks if not ranger.arg.clean and self.tags is None: self.tags = Tags(relpath_conf('tagged')) if self.ui is None: self.ui = DefaultUI() self.ui.initialize() def mylogfunc(text): self.notify(text, bad=True) self.run = Runner(ui=self.ui, apps=self.apps, logfunc=mylogfunc) self.env.signal_bind('cd', self._update_current_tab) def block_input(self, sec=0): self.input_blocked = sec != 0 self.input_blocked_until = time() + sec def input_is_blocked(self): if self.input_blocked and time() > self.input_blocked_until: self.input_blocked = False return self.input_blocked def loop(self): """ The main loop consists of: 1. reloading bookmarks if outdated 2. letting the loader work 3. drawing and finalizing ui 4. reading and handling user input 5. after X loops: collecting unused directory objects """ self.env.enter_dir(self.env.path) gc_tick = 0 # for faster lookup: ui = self.ui throbber = ui.throbber bookmarks = self.bookmarks loader = self.loader env = self.env has_throbber = hasattr(ui, 'throbber') try: while True: bookmarks.update_if_outdated() loader.work() if has_throbber: if loader.has_work(): throbber(loader.status) else: throbber(remove=True) ui.redraw() ui.set_load_mode(loader.has_work()) ui.handle_input() gc_tick += 1 if gc_tick > TICKS_BEFORE_COLLECTING_GARBAGE: gc_tick = 0 env.garbage_collect(TIME_BEFORE_FILE_BECOMES_GARBAGE) except KeyboardInterrupt: # this only happens in --debug mode. By default, interrupts # are caught in curses_interrupt_handler raise SystemExit finally: bookmarks.remember(env.cwd) bookmarks.save()