Friday, May 20, 2011

Geany Find in Files Dialog

I opened the geany Find in Files Dialog and it kept defaulting to ISO-8859-1. It kept bugging me cause I wanted it to default to UTF-8

Turns out... in the source code of Geany 0.20 says this:
/* set the encoding of the current file */
if (doc != NULL)
    enc_idx = encodings_get_idx_from_charset(doc->encoding);
gtk_combo_box_set_active(GTK_COMBO_BOX(fif_dlg.encoding_combo), enc_idx);

So my problem was I had an ISO-8859-1 file open... then when I went todo CTRL-SHIFT-F, find in files, it defaulted to the charset of the file that was already open. All I had to do was change the encoding of my file (that was already open) to utf8 and the find in files defaulted correctly.

Wednesday, May 11, 2011

hg style file on linux

http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html#id417978
http://www.jaharmi.com/2008/11/30/list_changed_files_in_a_mercurial_repository_with_a_custom_output_style
http://mercurial.808500.n3.nabble.com/How-to-get-a-list-of-changed-files-td808109.html

save this file:

http://mercurial.808500.n3.nabble.com/attachment/808110/0/map-cmdline.gward
to this folder:
/usr/share/mercurial/templates/

now you can do:
hg log -r tip --style gward -v

or setup your ~/.hgrc
[ui]
style = gward
[defaults]
log = -v

now you can do:
hg log -r tip