Skip to content

Instantly share code, notes, and snippets.

@fholgado
fholgado / .tmux.conf
Created March 6, 2012 01:37
Show iTunes current track/song in tmux
# Custom status bar
# # Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)⮂#[fg=colour16,bg=colour254,bold] #h '
# set -g status-right '#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,g=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
@fholgado
fholgado / gist:736363
Created December 10, 2010 15:50
MiniBufExpl Feature Suggestion
Anyways, I think the only issue with this otherwise great plugin is that you don't have an indication of what buffer your cursor is currently active in. See the following screenshot for an example:
http://fhl.gd/mhM
I have 2 buffers open in a split, and as expected, both buffers are shown as "MBEVisibleNormal" defined in the plugin. It would be great if we could have a color property in the plugin to be something like "MBEVisibleNormalActive", so that we can define a color for a buffer which contains the active cursor.
I am assuming we would need an "Active" category for each of the states defined now:
hi def link MBENormal Comment
hi def link MBEChanged String
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
}
function index() {
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
}
function index() {
We couldn’t find that file to show.
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
function get_database_quantity($id) {
$db_quantity = $this->Database_model->get_from_organization_by_id($id);