about summary refs log tree commit diff stats
path: root/src/ui/occupantswin.c
Commit message (Collapse)AuthorAgeFilesLines
* MUC: Show offline members in sidebarThorben Günther2021-03-081-10/+64
|
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Apply coding styleMichael Vetter2020-07-071-22/+22
|
* Revert "Apply coding style"Michael Vetter2020-07-071-22/+22
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-22/+22
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Add workaround for compiler warningMichael Vetter2020-02-141-1/+1
| | | | Regards https://github.com/profanity-im/profanity/issues/1265
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Add workaround for stupid compiler warningMichael Vetter2019-12-191-1/+1
| | | | Makes travis builds for TW, Debian and Arch fail.
* Add /occupants color commandMichael Vetter2019-12-191-4/+18
| | | | | | | | `/occupants color on|off` to enable or disable XEP-0392 also for the MUC occupants. Regards https://github.com/profanity-im/profanity/issues/1191
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Add myself to copyrightMichael Vetter2019-06-171-0/+1
| | | | Like discussed with James.
* Add occupants charMichael Vetter2019-05-021-0/+5
| | | | | | | `/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
* Fix formatting for privileges onMichael Vetter2019-04-241-0/+4
| | | | | `/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong here. Printing privilige followed by nickaname in the same line.
* Occupantswin: handle newline correctlyMichael Vetter2019-04-241-6/+6
|
* Add occupants wrap optionMichael Vetter2019-04-241-2/+6
| | | | | | | Wrapping for the occupants panel like already exists for the roster panel. See `/occupants wrap on`. Regards https://github.com/boothj5/profanity/issues/690
* Put occupants update into own functionMichael Vetter2019-04-231-0/+17
|
* Add occupants header charMichael Vetter2019-04-231-4/+31
| | | | | | | | `/occupants header char` now sets a character that is displayed before the role (moderator, visitor..) in a room. Similar to `/roster header char` is displaying a char for the roster. Regards https://github.com/boothj5/profanity/issues/690
* Adjust jid for occupants indentMichael Vetter2019-04-201-3/+11
| | | | Indent the jid one more space than nick.
* Allow setting occupants indent outside of MUCMichael Vetter2019-04-201-2/+0
| | | | And when not connected.
* Add /occupants indent commandMichael Vetter2019-04-181-1/+12
| | | | | | | | Roster has a `/roster contact indent` option. Now we have the same for occupants. So contacts in roster and in MUC can have configurable indentation. Regards https://github.com/boothj5/profanity/issues/690
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Tidy headersJames Booth2016-07-241-2/+2
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Updated copyrightJames Booth2016-02-141-1/+1
|
* Added word wrap to roster panelJames Booth2015-11-221-6/+6
|
* Pass wrap boolean to win_sub_print()James Booth2015-11-221-6/+6
|
* Renamed subwin functionsJames Booth2015-11-221-6/+6
|
* Added /roster indent contactJames Booth2015-11-211-6/+6
|
* Applied coding style to src/ui/James Booth2015-10-251-1/+1
|
* Moved ui/windows -> window_listJames Booth2015-06-151-2/+2
|
* Added option to show jids in occupants panelJames Booth2015-04-121-5/+12
|
* Updated copyrightJames Booth2015-02-101-1/+1
|
* Removed function pointersJames Booth2014-12-221-8/+2
|
* Use class instead of base pointerJames Booth2014-12-211-1/+1
|
* Refactored all window recipients and typesJames Booth2014-12-201-1/+1
| | | | Tests need fixing
* Tidy occupantswin.cJames Booth2014-12-161-40/+19
|
* Added occupantswin.cJames Booth2014-12-161-0/+147
n> = os.path.basename(parts[0]) if exe_name in get_executables(): return tuple(parts) + tuple(c) return self.either(c, 'vim', 'emacs', 'nano') def app_edit_or_run(self, c): if c.mode is 1: return self.app_self(c) return self.app_editor(c) @depends_on('mplayer') def app_mplayer(self, c): if c.mode is 1: return tup('mplayer', '-fs', *c) elif c.mode is 2: args = "mplayer -fs -sid 0 -vfm ffmpeg -lavdopts " \ "lowres=1:fast:skiploopfilter=all:threads=8".split() args.extend(c) return tup(*args) elif c.mode is 3: return tup('mplayer', '-mixer', 'software', *c) else: return tup('mplayer', *c) @depends_on('feh') def app_feh(self, c): arg = {1: '--bg-scale', 2: '--bg-tile', 3: '--bg-center'} c.flags += 'd' if c.mode in arg: # mode 1, 2 and 3 will set the image as the background return tup('feh', arg[c.mode], c.file.path) if c.mode is 11 and len(c.files) is 1: # view all files in the cwd images = (f.basename for f in self.fm.env.cwd.files if f.image) return tup('feh', '--start-at', c.file.basename, *images) return tup('feh', *c) @depends_on('aunpack') def app_aunpack(self, c): if c.mode is 0: c.flags += 'p' return tup('aunpack', '-l', c.file.path) return tup('aunpack', c.file.path) @depends_on('file-roller') def app_file_roller(self, c): c.flags += 'd' return tup('file-roller', c.file.path) @depends_on('make') def app_make(self, c): if c.mode is 0: return tup("make") if c.mode is 1: return tup("make", "install") if c.mode is 2: return tup("make", "clear") @depends_on('java') def app_java(self, c): def strip_extensions(file): if '.' in file.basename: return file.path[:file.path.index('.')] return file.path files_without_extensions = map(strip_extensions, c.files) return tup("java", files_without_extensions) @depends_on('totem') def app_totem(self, c): if c.mode is 0: return tup("totem", *c) if c.mode is 1: return tup("totem", "--fullscreen", *c) # Often a programs invocation is trivial. For example: # vim test.py readme.txt [...] # This could be implemented like: # @depends_on("vim") # def app_vim(self, c): # return tup("vim", *c.files) # Instead of creating such a generic function for each program, just add # its name here and it will be automatically done for you. CustomApplications.generic('vim', 'fceux', 'elinks', 'wine', 'zsnes', 'javac') # By setting flags='d', this programs will not block ranger's terminal: CustomApplications.generic('opera', 'firefox', 'apvlv', 'evince', 'zathura', 'gimp', 'mirage', 'eog', flags='d') # What filetypes are recognized as scripts for interpreted languages? # This regular expression is used in app_default() INTERPRETED_LANGUAGES = re.compile(r''' ^(text|application)/x-( haskell|perl|python|ruby|sh )$''', re.VERBOSE)