Initial commit for desktop branch
This commit is contained in:
parent
d74a379e12
commit
ba2c7d83cb
|
@ -0,0 +1,2 @@
|
|||
#include ".fonts/Xdefaults"
|
||||
#include ".urxvt/Xdefaults"
|
|
@ -0,0 +1,44 @@
|
|||
[ui_files]
|
||||
0=/usr/share/lyx/ui/default.ui
|
||||
0\date=@Variant(\0\0\0\x10\0%x\xcd\x3j_\xd8\x1)
|
||||
|
||||
[views]
|
||||
0\pos=@Point(3 30)
|
||||
0\size=@Size(1672 998)
|
||||
0\layout=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\0\0\0\0\0\0\xfc\x2\0\0\0\x1\xfb\0\0\0\x6\0t\0o\0\x63\0\0\0\0\0\xff\xff\xff\xff\0\0\x1[\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x16\0v\0i\0\x65\0w\0-\0s\0o\0u\0r\0\x63\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\xb6\0\xff\xff\xff\0\0\x6\x88\0\0\x3\xa0\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1d\0\0\0\x2\0\0\0\x3\0\0\0\x10\0s\0t\0\x61\0n\0\x64\0\x61\0r\0\x64\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\n\0\x65\0x\0t\0r\0\x61\x1\0\0\x2s\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0v\0i\0\x65\0w\0/\0u\0p\0\x64\0\x61\0t\0\x65\x1\0\0\x4\xfb\0\0\0P\0\0\0\0\0\0\0\0\0\0\0\x2\0\0\0\0\0\0\0\x2\0\0\0\x1\0\0\0\f\0r\0\x65\0v\0i\0\x65\0w\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x2\0\0\0\0\0\0\0\x2\0\0\0\x1\0\0\0\x6\0v\0\x63\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\n\0t\0\x61\0\x62\0l\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\b\0m\0\x61\0t\0h\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\"\0m\0\x61\0t\0h\0m\0\x61\0\x63\0r\0o\0t\0\x65\0m\0p\0l\0\x61\0t\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x14\0m\0i\0n\0i\0\x62\0u\0\x66\0\x66\0\x65\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0m\0\x61\0t\0h\0_\0p\0\x61\0n\0\x65\0l\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x12\0\x66\0u\0n\0\x63\0t\0i\0o\0n\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\n\0s\0p\0\x61\0\x63\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0s\0q\0r\0t\0-\0s\0q\0u\0\x61\0r\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\n\0s\0t\0y\0l\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0\x66\0r\0\x61\0\x63\0-\0s\0q\0u\0\x61\0r\0\x65\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\b\0\x66\0o\0n\0t\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x14\0l\0\x61\0t\0\x65\0x\0_\0\x64\0o\0t\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x14\0l\0\x61\0t\0\x65\0x\0_\0\x64\0\x65\0\x63\0o\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0l\0\x61\0t\0\x65\0x\0_\0\x61\0r\0r\0o\0w\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x12\0l\0\x61\0t\0\x65\0x\0_\0\x62\0o\0p\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x14\0l\0\x61\0t\0\x65\0x\0_\0\x62\0r\0\x65\0l\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0l\0\x61\0t\0\x65\0x\0_\0g\0r\0\x65\0\x65\0k\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x14\0l\0\x61\0t\0\x65\0x\0_\0m\0i\0s\0\x63\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x16\0l\0\x61\0t\0\x65\0x\0_\0v\0\x61\0r\0s\0z\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1c\0l\0\x61\0t\0\x65\0x\0_\0\x61\0m\0s\0_\0m\0i\0s\0\x63\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0 \0l\0\x61\0t\0\x65\0x\0_\0\x61\0m\0s\0_\0\x61\0r\0r\0o\0w\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1a\0l\0\x61\0t\0\x65\0x\0_\0\x61\0m\0s\0_\0r\0\x65\0l\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1c\0l\0\x61\0t\0\x65\0x\0_\0\x61\0m\0s\0_\0n\0r\0\x65\0l\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1a\0l\0\x61\0t\0\x65\0x\0_\0\x61\0m\0s\0_\0o\0p\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
|
||||
0\icon_size=@Size(14 14)
|
||||
0\extra\visibility=5
|
||||
0\font\visibility=10
|
||||
0\frac-square\visibility=10
|
||||
0\functions\visibility=10
|
||||
0\latex_ams_arrows\visibility=10
|
||||
0\latex_ams_misc\visibility=10
|
||||
0\latex_ams_nrel\visibility=10
|
||||
0\latex_ams_ops\visibility=10
|
||||
0\latex_ams_rel\visibility=10
|
||||
0\latex_arrow\visibility=10
|
||||
0\latex_bop\visibility=10
|
||||
0\latex_brel\visibility=10
|
||||
0\latex_deco\visibility=10
|
||||
0\latex_dots\visibility=10
|
||||
0\latex_greek\visibility=10
|
||||
0\latex_misc\visibility=10
|
||||
0\latex_varsz\visibility=10
|
||||
0\math\visibility=200
|
||||
0\math_panels\visibility=200
|
||||
0\mathmacrotemplate\visibility=1096
|
||||
0\minibuffer\visibility=10
|
||||
0\review\visibility=580
|
||||
0\space\visibility=10
|
||||
0\sqrt-square\visibility=10
|
||||
0\standard\visibility=5
|
||||
0\style\visibility=10
|
||||
0\table\visibility=328
|
||||
0\vcs\visibility=6
|
||||
0\view\update\visibility=5
|
||||
0\aboutlyx\geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x1\x2\0\0\0\xaa\0\0\x2J\0\0\x1\xd6\0\0\x1\x3\0\0\0\xbc\0\0\x2I\0\0\x1\xd5\0\0\0\0\0\0)
|
||||
0\prefs\geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\xdd\0\0\0\x17\0\0\x3\xc7\0\0\x1\xf8\0\0\0\xde\0\0\0)\0\0\x3\xc6\0\0\x1\xf7\0\0\0\0\0\0)
|
||||
0\toc\geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\xcf\0\0\x1Z\0\0\0\0\0\0\0\0\0\0\0\xcf\0\0\x1Z\0\0\0\0\0\0)
|
||||
0\view-source\geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x1\xb5\0\0\0[\0\0\0\0\0\0\0\0\0\0\x1\xb5\0\0\0[\0\0\0\0\0\0)
|
||||
0\view-source\fullsource=false
|
||||
0\view-source\autoupdate=true
|
|
@ -0,0 +1,192 @@
|
|||
|
||||
[geany]
|
||||
default_open_path=/home/kolan
|
||||
cmdline_new_files=true
|
||||
notebook_double_click_hides_widgets=false
|
||||
tab_pos_sidebar=2
|
||||
highlighting_invert_all=false
|
||||
pref_main_suppress_search_dialogs=false
|
||||
pref_main_search_use_current_word=true
|
||||
check_detect_indent=false
|
||||
use_tab_to_indent=true
|
||||
pref_editor_tab_width=8
|
||||
indent_hard_tab_width=8
|
||||
indent_mode=2
|
||||
indent_type=1
|
||||
autocomplete_doc_words=false
|
||||
completion_drops_rest_of_word=false
|
||||
autocompletion_max_entries=30
|
||||
mru_length=10
|
||||
disk_check_timeout=30
|
||||
show_editor_scrollbars=true
|
||||
brace_match_ltgt=false
|
||||
use_gtk_word_boundaries=true
|
||||
complete_snippets_whilst_editing=false
|
||||
show_symbol_list_expanders=true
|
||||
allow_always_save=false
|
||||
use_safe_file_saving=false
|
||||
documents_show_paths=true
|
||||
sidebar_page=2
|
||||
pref_main_load_session=true
|
||||
pref_main_project_session=true
|
||||
pref_main_project_file_in_basedir=true
|
||||
pref_main_save_winpos=true
|
||||
pref_main_confirm_exit=false
|
||||
pref_main_suppress_status_messages=false
|
||||
switch_msgwin_pages=false
|
||||
beep_on_errors=true
|
||||
auto_focus=false
|
||||
sidebar_symbol_visible=true
|
||||
sidebar_openfiles_visible=true
|
||||
editor_font=Liberation Mono 8
|
||||
tagbar_font=Sans 8
|
||||
msgwin_font=Sans 8
|
||||
show_notebook_tabs=true
|
||||
show_tab_cross=true
|
||||
tab_order_ltr=true
|
||||
tab_pos_editor=2
|
||||
tab_pos_msgwin=0
|
||||
show_indent_guide=false
|
||||
show_white_space=false
|
||||
show_line_endings=false
|
||||
show_markers_margin=true
|
||||
show_linenumber_margin=true
|
||||
long_line_type=0
|
||||
long_line_column=72
|
||||
long_line_color=#C2EBC2
|
||||
symbolcompletion_max_height=10
|
||||
symbolcompletion_min_chars=4
|
||||
use_folding=true
|
||||
unfold_all_children=true
|
||||
use_indicators=true
|
||||
line_wrapping=true
|
||||
auto_close_xml_tags=true
|
||||
complete_snippets=true
|
||||
auto_complete_symbols=true
|
||||
pref_editor_disable_dnd=false
|
||||
pref_editor_smart_home_key=true
|
||||
pref_editor_newline_strip=true
|
||||
line_break_column=72
|
||||
auto_continue_multiline=true
|
||||
comment_toggle_mark=~
|
||||
scroll_stop_at_last_line=true
|
||||
autoclose_chars=31
|
||||
pref_editor_default_new_encoding=UTF-8
|
||||
pref_editor_default_open_encoding=WINDOWS-1251
|
||||
default_eol_character=2
|
||||
pref_editor_new_line=true
|
||||
pref_editor_replace_tabs=false
|
||||
pref_editor_trail_space=true
|
||||
pref_toolbar_show=true
|
||||
pref_toolbar_append_to_menu=false
|
||||
pref_toolbar_icon_style=0
|
||||
pref_toolbar_icon_size=0
|
||||
pref_template_developer=Kolan Sh.
|
||||
pref_template_company=InSys Ltd
|
||||
pref_template_mail=mecareful@gmail.com
|
||||
pref_template_initial=SNS
|
||||
pref_template_version=1.0
|
||||
pref_template_year=%Y
|
||||
pref_template_date=%Y-%m-%d
|
||||
pref_template_datetime=%d.%m.%Y %H:%M:%S %Z
|
||||
context_action_cmd=
|
||||
sidebar_visible=true
|
||||
statusbar_visible=true
|
||||
msgwindow_visible=true
|
||||
fullscreen=false
|
||||
scribble_text=
|
||||
scribble_pos=0
|
||||
treeview_position=0
|
||||
msgwindow_position=687
|
||||
geometry=3;30;1672;968;0;
|
||||
custom_date_format=
|
||||
sidebar_pos=0
|
||||
virtualspace=1
|
||||
color_scheme=
|
||||
compiler_tab_autoscroll=true
|
||||
tab_order_beside=false
|
||||
msgwin_status_visible=true
|
||||
msgwin_compiler_visible=true
|
||||
msgwin_messages_visible=true
|
||||
msgwin_scribble_visible=true
|
||||
use_native_windows_dialogs=false
|
||||
long_line_enabled=true
|
||||
pref_toolbar_use_gtk_default_style=false
|
||||
pref_toolbar_use_gtk_default_icon=true
|
||||
gio_unsafe_save_backup=false
|
||||
find_selection_type=0
|
||||
statusbar_template=
|
||||
new_document_after_close=false
|
||||
pref_editor_ensure_convert_line_endings=false
|
||||
|
||||
[search]
|
||||
pref_search_current_file_dir=true
|
||||
find_all_expanded=false
|
||||
replace_all_expanded=true
|
||||
fif_mode=0
|
||||
fif_extra_options=
|
||||
fif_case_sensitive=true
|
||||
fif_match_whole_word=false
|
||||
fif_invert_results=false
|
||||
fif_recursive=false
|
||||
fif_use_extra_options=false
|
||||
position_find_x=90
|
||||
position_find_y=386
|
||||
position_replace_x=800
|
||||
position_replace_y=464
|
||||
position_fif_x=1154
|
||||
position_fif_y=409
|
||||
fif_regexp=false
|
||||
fif_files=
|
||||
fif_use_files=false
|
||||
|
||||
[plugins]
|
||||
load_plugins=true
|
||||
custom_plugin_path=/home/kolan/.geany/plugins
|
||||
active_plugins=/usr/lib64/geany/codenav.so;/usr/lib64/geany/geanyextrasel.so;/usr/lib64/geany/geanylatex.so;/usr/lib64/geany/spellcheck.so;/usr/lib64/geany/treebrowser.so;/usr/lib64/geany/classbuilder.so;/usr/lib64/geany/saveactions.so;/usr/lib64/geany/addons.so;/usr/lib64/geany/splitwindow.so;/usr/lib64/geany/shiftcolumn.so;/usr/lib64/geany/htmlchars.so;/usr/lib64/geany/export.so;
|
||||
|
||||
[tools]
|
||||
make_cmd=make
|
||||
term_cmd=urxvt
|
||||
browser_cmd=firefox
|
||||
grep_cmd=grep
|
||||
|
||||
[printing]
|
||||
print_cmd=
|
||||
use_gtk_printing=true
|
||||
print_line_numbers=true
|
||||
print_page_numbers=true
|
||||
print_page_header=true
|
||||
page_header_basename=false
|
||||
page_header_datefmt=%c
|
||||
|
||||
[VTE]
|
||||
load_vte=true
|
||||
emulation=xterm
|
||||
font=Terminus 10
|
||||
scroll_on_key=true
|
||||
scroll_on_out=true
|
||||
enable_bash_keys=false
|
||||
ignore_menu_bar_accel=false
|
||||
follow_path=true
|
||||
run_in_vte=true
|
||||
skip_run_script=false
|
||||
cursor_blinks=true
|
||||
scrollback_lines=500
|
||||
shell=/bin/bash
|
||||
colour_fore=#FFFFFF
|
||||
colour_back=#000000
|
||||
last_dir=/home/kolan/projects/dataserver
|
||||
send_selection_unsafe=false
|
||||
|
||||
[project]
|
||||
session_file=/home/kolan/projects/dataserver/dataserver.geany
|
||||
project_file_path=/home/kolan/projects
|
||||
|
||||
[files]
|
||||
recent_files=/home/kolan/projects/dataserver/netfuncs.h;/home/kolan/projects/dataserver/netfuncs.c;/home/kolan/projects/dataserver/mpool.h;/home/kolan/projects/dataserver/mpool.c;/home/kolan/projects/dataserver/xerror.c;/home/kolan/projects/dataserver/xerror.h;/home/kolan/projects/dataserver/xmalloc.h;/home/kolan/projects/dataserver/xmalloc.c;/home/kolan/dev/c/malloc_speed_test/pool_list.c;/home/kolan/projects/dataserver/dataserver.c;
|
||||
recent_projects=/home/kolan/projects/dataserver/dataserver.geany;dataserver.geany;/home/kolan/Projects/cpp/sockets/sockets.geany;/home/kolan/Projects/cpp/multithreading/pthread_ex.geany;/home/kolan/Projects/c/tmp2/tmp2.geany;/home/kolan/Projects/c/tmp1/tmp1.geany;/home/kolan/Projects/CPP/hello/hello.geany;/home/kolan/Projects/CPP/multithreading/pthread_ex.geany;/home/kolan/Projects/C/hello/hello.geany;
|
||||
current_page=0
|
||||
FILE_NAME_0=6788;C;0;16;1;1;1;/home/kolan/projects/dataserver/dataserver.c;0
|
||||
FILE_NAME_1=0;C;0;16;1;1;1;/home/kolan/projects/dataserver/dataserver.h;0
|
||||
FILE_NAME_2=0;C;0;16;1;1;1;/home/kolan/projects/dataserver/echo-client.c;0
|
|
@ -0,0 +1,245 @@
|
|||
#Keybindings for Geany
|
||||
#The format looks like "<Control>a" or "<Shift><Alt>F1".
|
||||
#But you can also change the keys in Geany's preferences dialog.
|
||||
|
||||
[Bindings]
|
||||
menu_new=<Control>n
|
||||
menu_open=<Control>o
|
||||
menu_open_selected=<Shift><Control>o
|
||||
menu_save=<Control>s
|
||||
menu_saveas=
|
||||
menu_saveall=<Shift><Control>s
|
||||
menu_print=<Control>p
|
||||
menu_close=<Control>w
|
||||
menu_closeall=<Shift><Control>w
|
||||
menu_reloadfile=<Control>r
|
||||
project_properties=
|
||||
menu_undo=<Control>z
|
||||
menu_redo=<Control>y
|
||||
edit_deleteline=<Control>k
|
||||
edit_duplicateline=<Control>d
|
||||
edit_transposeline=<Control>t
|
||||
edit_scrolltoline=<Shift><Control>l
|
||||
edit_scrolllineup=<Alt>Up
|
||||
edit_scrolllinedown=<Alt>Down
|
||||
edit_completesnippet=Tab
|
||||
edit_suppresssnippetcompletion=
|
||||
move_snippetnextcursor=
|
||||
popup_contextaction=
|
||||
edit_autocomplete=<Control>space
|
||||
edit_calltip=<Shift><Control>space
|
||||
edit_macrolist=<Control>Return
|
||||
edit_deletelinetoend=<Shift><Control>Delete
|
||||
menu_cut=<Control>x
|
||||
menu_copy=<Control>c
|
||||
menu_paste=<Control>v
|
||||
edit_cutline=<Shift><Control>x
|
||||
edit_copyline=<Shift><Control>c
|
||||
menu_selectall=<Control>a
|
||||
edit_selectword=<Shift><Alt>w
|
||||
edit_selectline=<Shift><Alt>l
|
||||
edit_selectparagraph=<Shift><Alt>p
|
||||
edit_togglecase=<Control><Alt>u
|
||||
edit_commentlinetoggle=<Control>e
|
||||
edit_commentline=
|
||||
edit_uncommentline=
|
||||
edit_increaseindent=<Control>i
|
||||
edit_decreaseindent=<Control>u
|
||||
edit_increaseindentbyspace=
|
||||
edit_decreaseindentbyspace=
|
||||
edit_autoindent=
|
||||
edit_sendtocmd1=<Control>1
|
||||
edit_sendtocmd2=<Control>2
|
||||
edit_sendtocmd3=<Control>3
|
||||
edit_sendtovte=
|
||||
format_reflowparagraph=<Control>j
|
||||
menu_insert_date=<Shift><Alt>d
|
||||
edit_insertwhitespace=
|
||||
menu_preferences=<Control><Alt>p
|
||||
menu_find=<Control>f
|
||||
menu_findnext=<Control>g
|
||||
menu_findprevious=<Shift><Control>g
|
||||
menu_findinfiles=<Shift><Control>f
|
||||
menu_replace=<Control>h
|
||||
menu_findnextsel=
|
||||
menu_findprevsel=
|
||||
menu_nextmessage=
|
||||
menu_previousmessage=
|
||||
popup_findusage=
|
||||
popup_finddocumentusage=
|
||||
find_markall=<Shift><Control>m
|
||||
nav_forward=
|
||||
nav_back=
|
||||
menu_gotoline=<Control>l
|
||||
edit_gotolinestart=Home
|
||||
edit_gotolineend=End
|
||||
edit_gotomatchingbrace=<Control>b
|
||||
edit_togglemarker=<Control>m
|
||||
edit_gotonextmarker=<Control>period
|
||||
edit_gotopreviousmarker=<Control>comma
|
||||
edit_prevwordstart=<Control>slash
|
||||
edit_nextwordstart=<Control>backslash
|
||||
popup_gototagdefinition=
|
||||
popup_gototagdeclaration=
|
||||
edit_gotolineendvisual=<Alt>End
|
||||
menu_toggleall=
|
||||
menu_fullscreen=F11
|
||||
menu_messagewindow=
|
||||
toggle_sidebar=
|
||||
menu_zoomin=<Control>plus
|
||||
menu_zoomout=<Control>minus
|
||||
switch_editor=F2
|
||||
switch_scribble=F6
|
||||
switch_vte=F4
|
||||
switch_search_bar=F7
|
||||
switch_sidebar=
|
||||
switch_compiler=
|
||||
switch_tableft=<Control>Page_Up
|
||||
switch_tabright=<Control>Page_Down
|
||||
switch_tablastused=<Control>Tab
|
||||
move_tableft=<Alt>Page_Up
|
||||
move_tabright=<Alt>Page_Down
|
||||
move_tabfirst=
|
||||
move_tablast=
|
||||
menu_replacetabs=
|
||||
menu_replacespaces=
|
||||
menu_togglefold=
|
||||
menu_foldall=
|
||||
menu_unfoldall=
|
||||
reloadtaglist=<Shift><Control>r
|
||||
menu_linewrap=
|
||||
menu_linebreak=
|
||||
build_compile=F8
|
||||
build_link=F9
|
||||
build_make=<Shift>F9
|
||||
build_makeowntarget=<Shift><Control>F9
|
||||
build_makeobject=
|
||||
build_nexterror=
|
||||
build_previouserror=
|
||||
build_run=F5
|
||||
build_run2=
|
||||
build_options=
|
||||
menu_opencolorchooser=
|
||||
menu_help=F1
|
||||
|
||||
file_openlasttab=
|
||||
edit_wordpartcompletion=Tab
|
||||
edit_movelineup=
|
||||
edit_movelinedown=
|
||||
edit_selectwordpartleft=
|
||||
edit_selectwordpartright=
|
||||
menu_pluginpreferences=
|
||||
normal_size=<Control>0
|
||||
switch_messages=
|
||||
switch_message_window=
|
||||
switch_sidebar_doc_list=
|
||||
switch_sidebar_symbol_list=
|
||||
remove_markers=
|
||||
remove_error_indicators=
|
||||
|
||||
[file_browser]
|
||||
focus_file_list=
|
||||
focus_path_entry=
|
||||
|
||||
[split_window]
|
||||
split_horizontal=
|
||||
split_vertical=
|
||||
split_unsplit=
|
||||
|
||||
[html_chars]
|
||||
insert_html_chars=
|
||||
replace_special_characters=
|
||||
htmltoogle_toggle_plugin_status=
|
||||
|
||||
[code_navigation]
|
||||
switch_head_impl=<Shift><Alt>s
|
||||
goto_file=<Shift><Alt>g
|
||||
|
||||
[extra_select]
|
||||
column_mode=
|
||||
goto_line_extend=
|
||||
brace_match_extend=
|
||||
|
||||
[debug]
|
||||
"_Load"=
|
||||
"_Unload"=
|
||||
"_Run"=
|
||||
"_Kill"=
|
||||
"_Pause"=
|
||||
"_Continue"=
|
||||
"_Step"=
|
||||
"Step _Into"=
|
||||
"_Next"=
|
||||
"Ne_xt in"=
|
||||
"Run _To"=
|
||||
"Sta_ck"=
|
||||
"_Break"=
|
||||
"_Watches"=
|
||||
"_Finish"=
|
||||
"_Return"=
|
||||
"En_vironment"=
|
||||
"_Options"=
|
||||
|
||||
[geanylatex]
|
||||
run_latex_wizard=
|
||||
insert_latex_label=
|
||||
insert_latex_ref=
|
||||
insert_new_line=
|
||||
latex_toggle_status=
|
||||
latex_insert_environment=
|
||||
latex_insert_item=
|
||||
latex_replace_chars=
|
||||
format_bold=
|
||||
format_italic=
|
||||
format_typewriter=
|
||||
format_center=
|
||||
format_left=
|
||||
format_right=
|
||||
insert_description_list=
|
||||
insert_itemize_list=
|
||||
insert_enumerate_list=
|
||||
structure_lvl_up=
|
||||
structure_lvl_down=
|
||||
usepackage_dialog=
|
||||
latex_insert_command=
|
||||
|
||||
[geanylipsum]
|
||||
insert_lipsum=
|
||||
|
||||
[sendmail]
|
||||
send_file_as_attachment=
|
||||
|
||||
[geanyvc]
|
||||
vc_show_diff_of_file=
|
||||
vc_show_diff_of_dir=
|
||||
vc_show_diff_of_basedir=
|
||||
vc_commit=
|
||||
vc_status=
|
||||
vc_update=
|
||||
vc_revert_file=
|
||||
vc_revert_dir=
|
||||
vc_revert_basedir=
|
||||
|
||||
[insert_numbers]
|
||||
insert_numbers=
|
||||
|
||||
[spellcheck]
|
||||
spell_check=
|
||||
spell_toggle_typing=
|
||||
|
||||
[prettyprinter]
|
||||
run_pretty_printer_xml=
|
||||
|
||||
[doc_chars]
|
||||
Документация на слово под курсором=
|
||||
Document interactive=
|
||||
|
||||
[addons]
|
||||
focus_bookmark_list=
|
||||
focus_tasks=
|
||||
update_tasks=
|
||||
xml_tagging=
|
||||
|
||||
[shiftcolumn]
|
||||
shift_left=<Control>9
|
||||
shift_right=<Control>0
|
Binary file not shown.
|
@ -0,0 +1,243 @@
|
|||
######################################################################
|
||||
# GQview config file version 2.1.5 #
|
||||
######################################################################
|
||||
|
||||
# Note: This file is autogenerated. Options can be changed here,
|
||||
# but user comments and formatting will be lost.
|
||||
|
||||
##### General Options #####
|
||||
|
||||
layout_style: 0
|
||||
|
||||
layout_order: "123"
|
||||
|
||||
layout_view_as_icons: true
|
||||
|
||||
layout_view_as_tree: true
|
||||
|
||||
show_icon_names: true
|
||||
|
||||
|
||||
tree_descend_folders: false
|
||||
|
||||
lazy_image_sync: false
|
||||
|
||||
update_on_time_change: true
|
||||
|
||||
exif_auto_rotate: true
|
||||
|
||||
|
||||
enable_startup_path: false
|
||||
|
||||
startup_path:
|
||||
|
||||
zoom_mode: fit
|
||||
two_pass_scaling: true
|
||||
|
||||
zoom_to_fit_allow_expand: true
|
||||
|
||||
|
||||
fit_window_to_image: true
|
||||
|
||||
limit_window_size: false
|
||||
|
||||
max_window_size: 100
|
||||
|
||||
|
||||
progressive_keyboard_scrolling: false
|
||||
|
||||
scroll_reset_method: 0
|
||||
|
||||
|
||||
enable_thumbnails: false
|
||||
|
||||
thumbnail_width: 96
|
||||
|
||||
thumbnail_height: 72
|
||||
|
||||
cache_thumbnails: true
|
||||
|
||||
cache_thumbnails_into_dirs: false
|
||||
|
||||
thumbnail_fast: true
|
||||
|
||||
use_xvpics_thumbnails: true
|
||||
|
||||
thumbnail_spec_standard: true
|
||||
|
||||
|
||||
local_metadata: false
|
||||
|
||||
|
||||
sort_method: 1
|
||||
|
||||
sort_ascending: true
|
||||
|
||||
sort_case_sensitive: false
|
||||
|
||||
|
||||
confirm_delete: true
|
||||
|
||||
enable_delete_key: true
|
||||
|
||||
safe_delete: false
|
||||
|
||||
safe_delete_path: "/home/kolan/.gqview/trash"
|
||||
safe_delete_size: 20
|
||||
|
||||
|
||||
tools_float: false
|
||||
|
||||
tools_hidden: false
|
||||
|
||||
restore_tool_state: false
|
||||
|
||||
toolbar_hidden: false
|
||||
|
||||
mouse_wheel_scrolls: false
|
||||
|
||||
in_place_rename: true
|
||||
|
||||
open_recent_max: 10
|
||||
|
||||
image_cache_size_max: 10
|
||||
|
||||
thumbnail_quality: 1
|
||||
|
||||
zoom_quality: 2
|
||||
|
||||
dither_quality: 1
|
||||
|
||||
zoom_increment: 5
|
||||
|
||||
enable_read_ahead: true
|
||||
|
||||
display_dialogs_under_mouse: false
|
||||
|
||||
black_window_background: false
|
||||
|
||||
fullscreen_screen: -1
|
||||
|
||||
fullscreen_clean_flip: false
|
||||
|
||||
fullscreen_disable_saver: true
|
||||
|
||||
fullscreen_above: false
|
||||
|
||||
custom_similarity_threshold: 99
|
||||
|
||||
|
||||
##### Slideshow Options #####
|
||||
|
||||
slideshow_delay: 15.0
|
||||
|
||||
slideshow_random: false
|
||||
|
||||
slideshow_repeat: false
|
||||
|
||||
|
||||
##### Filtering Options #####
|
||||
|
||||
show_dotfiles: false
|
||||
|
||||
disable_filtering: false
|
||||
|
||||
filter_ext: "icns" ".icns" "Формат изображений ICNS"
|
||||
filter_ext: "gif" ".gif" "Формат изображений GIF"
|
||||
filter_ext: "bmp" ".bmp" "Формат изображений BMP"
|
||||
filter_ext: "pnm" ".pnm;.pbm;.pgm;.ppm" "Семейство форматов изображений PNM/PBM/PGM/PPM"
|
||||
filter_ext: "ico" ".ico;.cur" "Формат изображений ICO"
|
||||
filter_ext: "ani" ".ani" "Формат изображений ANI"
|
||||
filter_ext: "tga" ".tga;.targa" "Формат изображений Targa"
|
||||
filter_ext: "ras" ".ras" "Формат растровых изображений компании Sun"
|
||||
filter_ext: "jpeg" ".jpeg;.jpe;.jpg" "Формат изображений JPEG"
|
||||
filter_ext: "qtif" ".qtif;.qif" "Формат изображений QTIF"
|
||||
filter_ext: "xbm" ".xbm" "Формат изображений XBM"
|
||||
filter_ext: "pcx" ".pcx" "Формат изображений PCX"
|
||||
filter_ext: "xpm" ".xpm" "Формат изображения XPM"
|
||||
filter_ext: "wbmp" ".wbmp" "Формат изображений WBMP"
|
||||
filter_ext: "png" ".png" "Формат изображений PNG"
|
||||
filter_ext: "#tiff" ".tif;.tiff" "Tiff"
|
||||
filter_ext: "#svg" ".svg" "Scalable Vector Graphics"
|
||||
filter_ext: "crw" ".crw;.cr2" "Canon raw format"
|
||||
filter_ext: "raf" ".raf" "Fujifilm raw format"
|
||||
filter_ext: "nef" ".nef" "Nikon raw format"
|
||||
filter_ext: "orf" ".orf" "Olympus raw format"
|
||||
filter_ext: "pef" ".pef" "Pentax raw format"
|
||||
|
||||
##### Color Profiles #####
|
||||
|
||||
# NOTICE: GQview was not built with support for color profiles,
|
||||
# color profile options will have no effect.
|
||||
|
||||
color_profile_enabled: false
|
||||
|
||||
color_profile_use_image: true
|
||||
|
||||
color_profile_input_type: 0
|
||||
|
||||
color_profile_input_file_1:
|
||||
color_profile_input_name_1:
|
||||
color_profile_input_file_2:
|
||||
color_profile_input_name_2:
|
||||
color_profile_input_file_3:
|
||||
color_profile_input_name_3:
|
||||
color_profile_input_file_4:
|
||||
color_profile_input_name_4:
|
||||
|
||||
color_profile_screen_type: 0
|
||||
|
||||
color_profile_screen_file_1:
|
||||
|
||||
##### External Programs #####
|
||||
# Maximum of 10 programs (external_1 through external_10)
|
||||
# format: external_n: "menu name" "command line"
|
||||
|
||||
external_1: "The Gimp" "gimp -n %f"
|
||||
external_2: "XV" "xv %f"
|
||||
external_3: "Xpaint" "xpaint %f"
|
||||
external_4: "" ""
|
||||
external_5: "" ""
|
||||
external_6: "" ""
|
||||
external_7: "" ""
|
||||
external_8: "" ""
|
||||
external_9: "Повернуть jpeg по часовой стрелк" "%vif jpegtran -rotate 90 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi"
|
||||
external_10: "Повернуть jpeg против часовой ст" "%vif jpegtran -rotate 270 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi"
|
||||
|
||||
##### Collection Options #####
|
||||
|
||||
rectangular_selections: false
|
||||
|
||||
|
||||
##### Window Positions #####
|
||||
|
||||
restore_window_positions: false
|
||||
|
||||
|
||||
main_window_x: 219
|
||||
|
||||
main_window_y: 43
|
||||
|
||||
main_window_width: 700
|
||||
|
||||
main_window_height: 500
|
||||
|
||||
main_window_maximized: false
|
||||
|
||||
float_window_x: 0
|
||||
|
||||
float_window_y: 0
|
||||
|
||||
float_window_width: 260
|
||||
|
||||
float_window_height: 450
|
||||
|
||||
float_window_divider: 200
|
||||
|
||||
divider_position_h: 270
|
||||
|
||||
divider_position_v: 200
|
||||
|
||||
######################################################################
|
||||
# end of GQview config file #
|
||||
######################################################################
|
|
@ -0,0 +1,109 @@
|
|||
URxvt*background: #000000
|
||||
URxvt*foreground: #C0C0C0
|
||||
URxvt.color0: rgb:46/70/73
|
||||
URxvt.color1: rgb:aa/00/00
|
||||
URxvt.color2: rgb:aa/aa/00
|
||||
URxvt.color3: rgb:77/77/00
|
||||
URxvt.color4: rgb:00/00/aa
|
||||
URxvt.color5: rgb:aa/00/aa
|
||||
URxvt.color6: rgb:00/aa/aa
|
||||
URxvt.color7: rgb:aa/aa/aa
|
||||
URxvt.color8: rgb:55/55/55
|
||||
URxvt.color9: rgb:ff/55/55
|
||||
URxvt.color10: rgb:33/bb/33
|
||||
URxvt.color11: rgb:ff/ff/55
|
||||
URxvt.color12: rgb:77/77/ff
|
||||
URxvt.color13: rgb:ff/55/ff
|
||||
URxvt.color14: rgb:55/ff/ff
|
||||
URxvt.color15: rgb:ff/ff/ff
|
||||
|
||||
! Имя терминала
|
||||
URxvt*termName: rxvt
|
||||
|
||||
! Будет ли курсор мигать
|
||||
URxvt.cursorBlink: false
|
||||
! Цвет курсора
|
||||
!URxvt.cursorColor: yellow
|
||||
! Цвет текста, находящегося под курсором
|
||||
!URxvt.cursorColor2: red
|
||||
|
||||
! Псевдопрозрачность - в кач-ве фона
|
||||
! поставить обои рабочего стола
|
||||
!URxvt*transparent: true
|
||||
! Яркость прозрачного фона (-100 .. 100)
|
||||
!URxvt*shading: 20
|
||||
! Та же псевдопрозрачность, без настройки яркости
|
||||
!URxvt.inheritPixmap: true
|
||||
! Цвет окрашивания прозрачного фона
|
||||
!URxvt*tintColor: #558888
|
||||
|
||||
! Иконка окна терминала
|
||||
!URxvt*iconFile: /usr/share/pixmaps/gnome-terminal.xpm
|
||||
|
||||
! Настройки шрифтов
|
||||
URxvt*font:-xos4-terminus-medium-r-normal--12-*-*-*-*-*-u
|
||||
! Горячие клавиши для изменения размера шрифта "на лету"
|
||||
! (Ctrl-1 - норма, Ctrl-2 - увеличить до 24)
|
||||
URxvt.keysym.C-1: command:\033]710;-xos4-terminus-medium-r-normal--12-*-*-*-*-*-u\007\033]711;-xos4-terminus-bold-r-normal--12-*-*-*-*-*-u\007
|
||||
URxvt.keysym.C-2: command:\033]710;-xos4-terminus-medium-r-normal--14-*-*-*-*-*-u\007\033]711;-xos4-terminus-bold-r-normal--14-*-*-*-*-*-u\007
|
||||
URxvt.keysym.C-3: command:\033]710;-xos4-terminus-medium-r-normal--16-*-*-*-*-*-u\007\033]711;-xos4-terminus-bold-r-normal--16-*-*-*-*-*-u\007
|
||||
|
||||
! Цвета в man-страницах
|
||||
URxvt.colorMode: on
|
||||
URxvt.boldColors: on
|
||||
URxvt.dynamicColors: on
|
||||
URxvt.colorULMode: on
|
||||
URxvt.underLine: off
|
||||
URxvt.colorBDMode: on
|
||||
!URxvt.colorBD: cyan
|
||||
|
||||
! Скроллинг + скроллбар
|
||||
URxvt*scrollBar: true
|
||||
URxvt*scrollBar_right: true
|
||||
URxvt*scrollstyle: plain
|
||||
|
||||
! Отображать символ табуляции как один широкий символ
|
||||
! (иначе - как перемещения курсора)
|
||||
URxvt.pastableTabs: true
|
||||
|
||||
!=== НАСТРОЙКИ ОБРАБОТКИ ССЫЛОК ===
|
||||
! Внешняя программа для открытия ссылок
|
||||
URxvt.urlLauncher: firefox
|
||||
! Кнопка мыши, которая открывает ссылку
|
||||
URxvt.matcher.button: 1
|
||||
! Горячие клавиши для выделения ссылок (Alt+U),
|
||||
! после выделения ссылка открывается по Enter
|
||||
!URxvt.keysym.M-u: perl:url-select:select_next
|
||||
! Выделять ссылки голубым цветом
|
||||
URxvt.colorUL: #86a2be
|
||||
! Подчеркивать ссылки
|
||||
URxvt.underlineURLs: true
|
||||
!URxvt.underlineColor: yellow
|
||||
|
||||
!=== НАСТРОЙКИ ФУНКЦИОНАЛА ===
|
||||
! Сколько строк хранить в памяти
|
||||
URxvt*saveLines: 5000
|
||||
! Настройки табов
|
||||
URxvt.tabbed.new-button: no
|
||||
URxvt.tabbed.tabbar-fg: 7
|
||||
URxvt.tabbed.tabbar-bg: 0
|
||||
URxvt.tabbed.tab-fg: 0
|
||||
URxvt.tabbed.tab-bg: 7
|
||||
! Оболочка
|
||||
URxvt.geometry: 128x64
|
||||
URxvt.loginShell: false
|
||||
URxvt.meta: ignore
|
||||
URxvt.utmpInhibit: true
|
||||
|
||||
!=== НАСТРОЙКИ РАСШИРЕНИЙ ===
|
||||
! Путь для поиска пользовательских расширений
|
||||
URxvt.perl-lib: .urxvt/perl/
|
||||
! Загружаемые по умолчанию расширения
|
||||
! Основные; расширенные табы (без кнопки NEW, можно устанавливать
|
||||
! заголовок окна: https://github.com/stepb/urxvt-tabbedex);
|
||||
! регэкспы для выделения ссылок в тексте; выбор ссылок горячими
|
||||
! клавишами); копирование в буфер обмена
|
||||
! URxvt*perl-ext: tabbed,clipboard-osc,confirm-paste,matcher,option-popup,overlay-osc,readline,remote-clipboard,searchable-scrollback,selection,selection- autotransform,selection-pastbin,selection-popup,xim-onthespot
|
||||
!URxvt.perl-ext-common: default,tabbedex,matcher,url-select,clipboard-osc
|
||||
URxvt*perl-ext: default,tabbedex,matcher,url-select,clipboard-osc,searchable-scrollback
|
||||
|
|
@ -0,0 +1,635 @@
|
|||
#! perl
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##
|
||||
## Tabbed plugin for rxvt-unicode
|
||||
## Modified by Michal Nazarewicz (mina86/AT/mina86.com), StephenB
|
||||
## (mail4stb/AT/gmail.com) and Steven Merrill
|
||||
## <steven dot merrill at gmail.com>
|
||||
##
|
||||
## The following has been added:
|
||||
##
|
||||
## 1. Depending on time of last activity, activity character differs.
|
||||
## By default, after 4 seconds an asterisk becomes a plus sing,
|
||||
## after next 4 it becomes a colon, and finally, after another 8
|
||||
## seconds it becomes a dot. This can be configured via
|
||||
## tabbar-timeouts resource. It's format is:
|
||||
##
|
||||
## ( <timeout> ":" <character> ":" )* <timeout> ":" <character> ":"
|
||||
##
|
||||
## where <timeout> is timeout in seconds and <character> is
|
||||
## a single activity character.
|
||||
##
|
||||
## 2. The "[NEW]" button can be disabled (who on Earth uses mouse to
|
||||
## create new tab anyways?) by setting new-button resource to yes.
|
||||
##
|
||||
## 3. If title resource is true, tab's title is displayed after last
|
||||
## button. This is handy if you have terminal with no window
|
||||
## decorations. Colours can be configured via title-fg and
|
||||
## title-bg.
|
||||
##
|
||||
## 4. Incorporated Alexey Semenko <asemenko at gmail.com> patch adding
|
||||
## autohide resource. If it's true tab bar is hidden if there is
|
||||
## no more then one tab opened.
|
||||
##
|
||||
## 5. Tabs are indexed in starting with zero hex. :] If you're such
|
||||
## a geek to use urxvt it shouldn't be a problem for you and it
|
||||
## saves few character when many tabs are opened.
|
||||
##
|
||||
## 6. As a minor modification: Final pipe character is removed (unless
|
||||
## title is displayed). This make tab bar look nicer.
|
||||
##
|
||||
## Added by StephenB:
|
||||
##
|
||||
## 7. Tabs can be named with Shift+Up (Enter to confirm, Escape to
|
||||
## cancel).
|
||||
##
|
||||
## 8. "[NEW]" button disabled by default.
|
||||
##
|
||||
## Added by Steven Merrill <steven dot merrill at gmail.com>
|
||||
##
|
||||
## 9. Ability to start a new tab or cycle through tabs via user
|
||||
## commands: tabbedex:(new|next|prev)_tab .
|
||||
## e.g. (in .Xdefaults) URxvt.keysym.M-t: perl:tabbedex:new_tab
|
||||
## (see the urxvt man file for more info about keysym)
|
||||
##
|
||||
## 10. Fix an issue whereby on_user_command would not properly get sent
|
||||
## to other extension packages if the mouse was not over the urxvt
|
||||
## window.
|
||||
##
|
||||
|
||||
|
||||
sub update_autohide {
|
||||
my ($self, $reconfigure) = @_;
|
||||
my $oldh = $self->{tabheight};
|
||||
if ($self->{autohide} && @{ $self->{tabs} } <= 1 &&
|
||||
! (@{ $self->{tabs} } == 1 && $self->{tabs}[-1]->{name})) {
|
||||
$self->{tabheight} = 0;
|
||||
} else {
|
||||
$self->{tabheight} = $self->{maxtabheight};
|
||||
}
|
||||
if ($reconfigure && $self->{tabheight} != $oldh) {
|
||||
$self->configure;
|
||||
$self->copy_properties;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sub tab_activity_mark ($$) {
|
||||
my ($self, $tab) = @_;
|
||||
return ' ' unless defined $tab->{lastActivity};
|
||||
return ' ' if $tab == $self->{cur};
|
||||
if (defined $self->{timeouts}) {
|
||||
my $diff = int urxvt::NOW - $tab->{lastActivity};
|
||||
for my $spec (@{ $self->{timeouts} }) {
|
||||
return $spec->[1] if $diff > $spec->[0];
|
||||
}
|
||||
}
|
||||
'*';
|
||||
}
|
||||
|
||||
|
||||
sub refresh {
|
||||
my ($self) = @_;
|
||||
|
||||
# autohide makes it zero
|
||||
return unless $self->{tabheight};
|
||||
|
||||
my $ncol = $self->ncol;
|
||||
|
||||
my $text = " " x $ncol;
|
||||
my $rend = [($self->{rs_tabbar}) x $ncol];
|
||||
|
||||
my ($ofs, $idx, @ofs) = (0, 0);
|
||||
|
||||
if ($self->{new_button}) {
|
||||
substr $text, 0, 7, "[NEW] |";
|
||||
@$rend[0 .. 5] = ($self->{rs_tab}) x 6;
|
||||
push @ofs, [0, 6, -1 ];
|
||||
$ofs = 7;
|
||||
}
|
||||
|
||||
for my $tab (@{ $self->{tabs} }) {
|
||||
my $name = $tab->{name} ? $tab->{name} : $idx;
|
||||
my $act = $self->tab_activity_mark($tab);
|
||||
my $txt = sprintf "%s%s%s", $act, $name, $act;
|
||||
my $len = length $txt;
|
||||
|
||||
substr $text, $ofs, $len + 1, "$txt|";
|
||||
@$rend[$ofs .. $ofs + $len - 1] = ($self->{rs_tab}) x $len
|
||||
if $tab == $self->{cur};
|
||||
|
||||
push @ofs, [ $ofs, $ofs + $len, $idx ];
|
||||
++$idx;
|
||||
$ofs += $len + 1;
|
||||
}
|
||||
|
||||
substr $text, --$ofs, 1, ' '; # remove last '|'
|
||||
|
||||
if ($self->{tab_title} && $ofs + 3 < $ncol) {
|
||||
my $term = $self->{term};
|
||||
my @str = $term->XGetWindowProperty($term->parent, $self->{tab_title});
|
||||
if (@str && $str[2]) {
|
||||
my $str = '| ' . $str[2];
|
||||
my $len = length $str;
|
||||
$len = $ncol - $ofs if $ofs + $len > $ncol;
|
||||
substr $text, $ofs, $len, substr $str, 0, $len;
|
||||
@$rend[$ofs + 2 .. $ofs + $len - 1] = ($self->{rs_title}) x ($len - 2);
|
||||
}
|
||||
}
|
||||
|
||||
$self->{tabofs} = \@ofs;
|
||||
|
||||
$self->ROW_t (0, $text, 0, 0, $ncol);
|
||||
$self->ROW_r (0, $rend, 0, 0, $ncol);
|
||||
|
||||
$self->want_refresh;
|
||||
}
|
||||
|
||||
|
||||
sub new_tab {
|
||||
my ($self, @argv) = @_;
|
||||
|
||||
my $offset = $self->fheight;
|
||||
|
||||
$self->{tabheight} = $self->{maxtabheight}
|
||||
unless $self->{autohide} && !(defined $self->{tabs} && @{ $self->{tabs} });
|
||||
|
||||
# save a backlink to us, make sure tabbedex is inactive
|
||||
push @urxvt::TERM_INIT, sub {
|
||||
my ($term) = @_;
|
||||
$term->{parent} = $self;
|
||||
|
||||
for (0 .. urxvt::NUM_RESOURCES - 1) {
|
||||
my $value = $self->{resource}[$_];
|
||||
|
||||
$term->resource ("+$_" => $value)
|
||||
if defined $value;
|
||||
}
|
||||
|
||||
$term->resource (perl_ext_2 => $term->resource ("perl_ext_2") . ",-tabbedex");
|
||||
};
|
||||
|
||||
push @urxvt::TERM_EXT, urxvt::ext::tabbedex::tab::;
|
||||
|
||||
my $term = new urxvt::term
|
||||
$self->env, $urxvt::RXVTNAME,
|
||||
-embed => $self->parent,
|
||||
@argv;
|
||||
}
|
||||
|
||||
|
||||
sub configure {
|
||||
my ($self) = @_;
|
||||
|
||||
my $tab = $self->{cur};
|
||||
|
||||
# this is an extremely dirty way to force a configurenotify, but who cares
|
||||
$tab->XMoveResizeWindow (
|
||||
$tab->parent,
|
||||
0, $self->{tabheight} + 1,
|
||||
$self->width, $self->height - $self->{tabheight}
|
||||
);
|
||||
$tab->XMoveResizeWindow (
|
||||
$tab->parent,
|
||||
0, $self->{tabheight},
|
||||
$self->width, $self->height - $self->{tabheight}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
sub copy_properties {
|
||||
my ($self) = @_;
|
||||
my $tab = $self->{cur};
|
||||
|
||||
my $wm_normal_hints = $self->XInternAtom ("WM_NORMAL_HINTS");
|
||||
|
||||
my $current = delete $self->{current_properties};
|
||||
|
||||
# pass 1: copy over properties different or nonexisting
|
||||
for my $atom ($tab->XListProperties ($tab->parent)) {
|
||||
my ($type, $format, $items) = $self->XGetWindowProperty ($tab->parent, $atom);
|
||||
|
||||
# fix up size hints
|
||||
if ($atom == $wm_normal_hints) {
|
||||
my (@hints) = unpack "l!*", $items;
|
||||
|
||||
$hints[$_] += $self->{tabheight} for (4, 6, 16);
|
||||
|
||||
$items = pack "l!*", @hints;
|
||||
}
|
||||
|
||||
my $cur = delete $current->{$atom};
|
||||
|
||||
# update if changed, we assume empty items and zero type and format will not happen
|
||||
$self->XChangeProperty ($self->parent, $atom, $type, $format, $items)
|
||||
if $cur->[0] != $type or $cur->[1] != $format or $cur->[2] ne $items;
|
||||
|
||||
$self->{current_properties}{$atom} = [$type, $format, $items];
|
||||
}
|
||||
|
||||
# pass 2, delete all extraneous properties
|
||||
$self->XDeleteProperty ($self->parent, $_) for keys %$current;
|
||||
}
|
||||
|
||||
|
||||
sub make_current {
|
||||
my ($self, $tab) = @_;
|
||||
|
||||
if (my $cur = $self->{cur}) {
|
||||
delete $cur->{lastActivity};
|
||||
$cur->XUnmapWindow ($cur->parent) if $cur->mapped;
|
||||
$cur->focus_out;
|
||||
}
|
||||
|
||||
$self->{cur} = $tab;
|
||||
|
||||
$self->configure;
|
||||
$self->copy_properties;
|
||||
|
||||
$tab->focus_out; # just in case, should be a nop
|
||||
$tab->focus_in if $self->focus;
|
||||
|
||||
$tab->XMapWindow ($tab->parent);
|
||||
delete $tab->{lastActivity};
|
||||
$self->refresh;
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub on_focus_in {
|
||||
my ($self, $event) = @_;
|
||||
$self->{cur}->focus_in;
|
||||
();
|
||||
}
|
||||
|
||||
sub on_focus_out {
|
||||
my ($self, $event) = @_;
|
||||
$self->{cur}->focus_out;
|
||||
();
|
||||
}
|
||||
|
||||
sub on_key_press {
|
||||
my ($self, $event) = @_;
|
||||
$self->{cur}->key_press ($event->{state}, $event->{keycode}, $event->{time});
|
||||
1;
|
||||
}
|
||||
|
||||
sub on_key_release {
|
||||
my ($self, $event) = @_;
|
||||
$self->{cur}->key_release ($event->{state}, $event->{keycode}, $event->{time});
|
||||
1;
|
||||
}
|
||||
|
||||
sub on_button_release {
|
||||
my ($self, $event) = @_;
|
||||
|
||||
if ($event->{row} == 0) {
|
||||
my $col = $event->{col};
|
||||
for my $button (@{ $self->{tabofs} }) {
|
||||
last if $col < $button->[0];
|
||||
next unless $col <= $button->[1];
|
||||
if ($button->[2] == -1) {
|
||||
$self->new_tab;
|
||||
} else {
|
||||
$self->make_current($self->{tabs}[$button->[2]]);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
sub on_init {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->{resource} = [map $self->resource ("+$_"), 0 .. urxvt::NUM_RESOURCES - 1];
|
||||
|
||||
$self->resource (int_bwidth => 0);
|
||||
$self->resource (name => "URxvt.tabbed");
|
||||
$self->resource (pty_fd => -1);
|
||||
|
||||
$self->option ($urxvt::OPTION{scrollBar}, 0);
|
||||
|
||||
my $fg = $self->x_resource ("tabbar-fg");
|
||||
my $bg = $self->x_resource ("tabbar-bg");
|
||||
my $tabfg = $self->x_resource ("tab-fg");
|
||||
my $tabbg = $self->x_resource ("tab-bg");
|
||||
my $titfg = $self->x_resource ("title-fg");
|
||||
my $titbg = $self->x_resource ("title-bg");
|
||||
|
||||
defined $fg or $fg = 3;
|
||||
defined $bg or $bg = 0;
|
||||
defined $tabfg or $tabfg = 0;
|
||||
defined $tabbg or $tabbg = 1;
|
||||
defined $titfg or $titfg = 2;
|
||||
defined $titbg or $titbg = 0;
|
||||
|
||||
$self->{rs_tabbar} = urxvt::SET_COLOR (urxvt::DEFAULT_RSTYLE, $fg + 2, $bg + 2);
|
||||
$self->{rs_tab} = urxvt::SET_COLOR (urxvt::DEFAULT_RSTYLE, $tabfg + 2, $tabbg + 2);
|
||||
$self->{rs_title} = urxvt::SET_COLOR (urxvt::DEFAULT_RSTYLE, $titfg + 2, $titbg + 2);
|
||||
|
||||
|
||||
my $timeouts = $self->x_resource ("tabbar-timeouts");
|
||||
$timeouts = '16:.:8:::4:+' unless defined $timeouts;
|
||||
if ($timeouts ne '') {
|
||||
my @timeouts;
|
||||
while ($timeouts =~ /^(\d+):(.)(?::(.*))?$/) {
|
||||
push @timeouts, [ int $1, $2 ];
|
||||
$timeouts = defined $3 ? $3 : '';
|
||||
}
|
||||
if (@timeouts) {
|
||||
$self->{timeouts} = [ sort { $b->[0] <=> $a-> [0] } @timeouts ];
|
||||
}
|
||||
}
|
||||
|
||||
$self->{new_button} =
|
||||
($self->x_resource ('new-button') or 'false') !~ /^(?:false|0|no)/i;
|
||||
$self->{tab_title} =
|
||||
($self->x_resource ('title') or 'true') !~ /^(?:false|0|no)/i;
|
||||
$self->{autohide} =
|
||||
($self->x_resource ('autohide') or 'false') !~ /^(?:false|0|no)/i;
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub on_start {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->{maxtabheight} = $self->int_bwidth + $self->fheight + $self->lineSpace;
|
||||
$self->{tabheight} = $self->{autohide} ? 0 : $self->{maxtabheight};
|
||||
|
||||
$self->{running_user_command} = 0;
|
||||
|
||||
$self->cmd_parse ("\033[?25l");
|
||||
|
||||
my @argv = $self->argv;
|
||||
|
||||
do {
|
||||
shift @argv;
|
||||
} while @argv && $argv[0] ne "-e";
|
||||
|
||||
if ($self->{tab_title}) {
|
||||
$self->{tab_title} = $self->{term}->XInternAtom("WM_NAME", 1);
|
||||
}
|
||||
|
||||
$self->new_tab (@argv);
|
||||
|
||||
if (defined $self->{timeouts}) {
|
||||
my $interval = ($self->{timeouts}[@{ $self->{timeouts} } - 1]->[0]);
|
||||
$interval = int($interval / 4);
|
||||
$self->{timer} = urxvt::timer->new
|
||||
->interval($interval < 1 ? 1 : $interval)
|
||||
->cb ( sub { $self->refresh; } );
|
||||
}
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub on_configure_notify {
|
||||
my ($self, $event) = @_;
|
||||
|
||||
$self->configure;
|
||||
$self->refresh;
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub on_user_command {
|
||||
my ($self, $event) = @_;
|
||||
|
||||
$self->{cur}->{term}->{parent}->tab_user_command($self->{cur}, $event, 1);
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub on_wm_delete_window {
|
||||
my ($self) = @_;
|
||||
$_->destroy for @{ $self->{tabs} };
|
||||
1;
|
||||
}
|
||||
|
||||
|
||||
sub tab_start {
|
||||
my ($self, $tab) = @_;
|
||||
|
||||
$tab->XChangeInput ($tab->parent, urxvt::PropertyChangeMask);
|
||||
|
||||
push @{ $self->{tabs} }, $tab;
|
||||
|
||||
# $tab->{name} ||= scalar @{ $self->{tabs} };
|
||||
$self->make_current ($tab);
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub tab_destroy {
|
||||
my ($self, $tab) = @_;
|
||||
|
||||
$self->{tabs} = [ grep $_ != $tab, @{ $self->{tabs} } ];
|
||||
$self->update_autohide ();
|
||||
|
||||
if (@{ $self->{tabs} }) {
|
||||
if ($self->{cur} == $tab) {
|
||||
delete $self->{cur};
|
||||
$self->make_current ($self->{tabs}[-1]);
|
||||
} else {
|
||||
$self->refresh;
|
||||
}
|
||||
} else {
|
||||
# delay destruction a tiny bit
|
||||
$self->{destroy} = urxvt::iw->new->start->cb (sub { $self->destroy });
|
||||
}
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub tab_key_press {
|
||||
my ($self, $tab, $event, $keysym, $str) = @_;
|
||||
|
||||
# setting binding keys
|
||||
#open FILE, ">/tmp/key.txt" or die $!;
|
||||
#printf FILE $keysym;
|
||||
#close FILE;
|
||||
|
||||
if ($tab->{is_inputting_name}) {
|
||||
if ($keysym == 0xff0d || $keysym == 0xff8d) { # enter
|
||||
$tab->{name} = $tab->{new_name};
|
||||
$tab->{is_inputting_name} = 0;
|
||||
$self->update_autohide (1);
|
||||
} elsif ($keysym == 0xff1b) { # escape
|
||||
$tab->{name} = $tab->{old_name};
|
||||
$tab->{is_inputting_name} = 0;
|
||||
$self->update_autohide (1);
|
||||
} elsif ($keysym == 0xff08) { # backspace
|
||||
substr $tab->{new_name}, -1, 1, "";
|
||||
$tab->{name} = "$tab->{new_name}█";
|
||||
} elsif ($str !~ /[\x00-\x1f\x80-\xaf]/) {
|
||||
$tab->{new_name} .= $str;
|
||||
$tab->{name} = "$tab->{new_name}█";
|
||||
}
|
||||
$self->refresh;
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ($event->{state} & urxvt::ControlMask) {
|
||||
|
||||
# previous tab
|
||||
if ($keysym == 0x004a || $keysym == 0x006a) {
|
||||
if (@{ $self->{tabs} } > 1) {
|
||||
$self->change_tab($tab, -1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
# next tab
|
||||
if ($keysym == 0x004b || $keysym == 0x006b) {
|
||||
if (@{ $self->{tabs} } > 1) {
|
||||
$self->change_tab($tab, 1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
# new tab
|
||||
if ($keysym == 0x003b) {
|
||||
$self->new_tab;
|
||||
return 1;
|
||||
|
||||
# tab title
|
||||
} elsif ($keysym == 0x0054 || $keysym == 0x0074) {
|
||||
$tab->{is_inputting_name} = 1;
|
||||
$tab->{old_name} = $tab->{name} ? $tab->{name} : "";
|
||||
$tab->{new_name} = "";
|
||||
$tab->{name} = "█";
|
||||
$self->update_autohide (1);
|
||||
$self->refresh;
|
||||
return 1;
|
||||
}
|
||||
|
||||
# move tab left
|
||||
if ($keysym == 0x0048 || $keysym == 0x0068) {
|
||||
if (@{ $self->{tabs} } > 1) {
|
||||
my $idx1 = 0;
|
||||
++$idx1 while $self->{tabs}[$idx1] != $tab;
|
||||
my $idx2 = ($idx1 - 1) % @{ $self->{tabs} };
|
||||
|
||||
($self->{tabs}[$idx1], $self->{tabs}[$idx2]) =
|
||||
($self->{tabs}[$idx2], $self->{tabs}[$idx1]);
|
||||
$self->make_current ($self->{tabs}[$idx2]);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
# move tab right
|
||||
if ($keysym == 0x0047 || $keysym == 0x0067) {
|
||||
if (@{ $self->{tabs} } > 1) {
|
||||
my $idx1 = 0;
|
||||
++$idx1 while $self->{tabs}[$idx1] != $tab;
|
||||
my $idx2 = ($idx1 + 1) % @{ $self->{tabs} };
|
||||
|
||||
($self->{tabs}[$idx1], $self->{tabs}[$idx2]) =
|
||||
($self->{tabs}[$idx2], $self->{tabs}[$idx1]);
|
||||
$self->make_current ($self->{tabs}[$idx2]);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub tab_property_notify {
|
||||
my ($self, $tab, $event) = @_;
|
||||
|
||||
$self->copy_properties
|
||||
if $event->{window} == $tab->parent;
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub tab_add_lines {
|
||||
my ($self, $tab) = @_;
|
||||
my $mark = $self->tab_activity_mark($tab);
|
||||
$tab->{lastActivity} = int urxvt::NOW;
|
||||
$self->refresh if $mark ne $self->tab_activity_mark($tab);
|
||||
();
|
||||
}
|
||||
|
||||
|
||||
sub tab_user_command {
|
||||
my ($self, $tab, $cmd, $proxy_events) = @_;
|
||||
|
||||
if ($cmd eq 'tabbedex:new_tab') {
|
||||
$self->new_tab;
|
||||
}
|
||||
elsif ($cmd eq 'tabbedex:next_tab') {
|
||||
$self->change_tab($tab, 1);
|
||||
}
|
||||
elsif ($cmd eq 'tabbedex:prev_tab') {
|
||||
$self->change_tab($tab, -1);
|
||||
}
|
||||
else {
|
||||
# Proxy the user command through to the tab's term, while taking care not
|
||||
# to get caught in an infinite loop.
|
||||
if ($proxy_events && $self->{running_user_command} == 0) {
|
||||
$self->{running_user_command} = 1;
|
||||
urxvt::invoke($tab->{term}, 20, $cmd);
|
||||
$self->{running_user_command} = 0;
|
||||
}
|
||||
}
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
sub change_tab {
|
||||
my ($self, $tab, $direction) = @_;
|
||||
|
||||
my $idx = 0;
|
||||
++$idx while $self->{tabs}[$idx] != $tab;
|
||||
$idx += $direction;
|
||||
$self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);
|
||||
|
||||
();
|
||||
}
|
||||
|
||||
package urxvt::ext::tabbedex::tab;
|
||||
|
||||
# helper extension implementing the subwindows of a tabbed terminal.
|
||||
# simply proxies all interesting calls back to the tabbedex class.
|
||||
|
||||
{
|
||||
for my $hook qw(start destroy user_command key_press property_notify add_lines) {
|
||||
eval qq{
|
||||
sub on_$hook {
|
||||
my \$parent = \$_[0]{term}{parent}
|
||||
or return;
|
||||
\$parent->tab_$hook (\@_)
|
||||
}
|
||||
};
|
||||
die if $@;
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,165 @@
|
|||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" CSCOPE settings for vim
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"
|
||||
" This file contains some boilerplate settings for vim's cscope interface,
|
||||
" plus some keyboard mappings that I've found useful.
|
||||
"
|
||||
" USAGE:
|
||||
" -- vim 6: Stick this file in your ~/.vim/plugin directory (or in a
|
||||
" 'plugin' directory in some other directory that is in your
|
||||
" 'runtimepath'.
|
||||
"
|
||||
" -- vim 5: Stick this file somewhere and 'source cscope.vim' it from
|
||||
" your ~/.vimrc file (or cut and paste it into your .vimrc).
|
||||
"
|
||||
" NOTE:
|
||||
" These key maps use multiple keystrokes (2 or 3 keys). If you find that vim
|
||||
" keeps timing you out before you can complete them, try changing your timeout
|
||||
" settings, as explained below.
|
||||
"
|
||||
" Happy cscoping,
|
||||
"
|
||||
" Jason Duell jduell@alumni.princeton.edu 2002/3/7
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
|
||||
" This tests to see if vim was configured with the '--enable-cscope' option
|
||||
" when it was compiled. If it wasn't, time to recompile vim...
|
||||
if has("cscope")
|
||||
|
||||
""""""""""""" Standard cscope/vim boilerplate
|
||||
|
||||
" use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
|
||||
set cscopetag
|
||||
|
||||
" check cscope for definition of a symbol before checking ctags: set to 1
|
||||
" if you want the reverse search order.
|
||||
set csto=0
|
||||
|
||||
" add any cscope database in current directory
|
||||
if filereadable("cscope.out")
|
||||
cs add cscope.out
|
||||
" else add the database pointed to by environment variable
|
||||
elseif $CSCOPE_DB != ""
|
||||
cs add $CSCOPE_DB
|
||||
endif
|
||||
|
||||
" show msg when any other cscope db added
|
||||
set cscopeverbose
|
||||
|
||||
|
||||
""""""""""""" My cscope/vim key mappings
|
||||
"
|
||||
" The following maps all invoke one of the following cscope search types:
|
||||
"
|
||||
" 's' symbol: find all references to the token under cursor
|
||||
" 'g' global: find global definition(s) of the token under cursor
|
||||
" 'c' calls: find all calls to the function name under cursor
|
||||
" 't' text: find all instances of the text under cursor
|
||||
" 'e' egrep: egrep search for the word under cursor
|
||||
" 'f' file: open the filename under cursor
|
||||
" 'i' includes: find files that include the filename under cursor
|
||||
" 'd' called: find functions that function under cursor calls
|
||||
"
|
||||
" Below are three sets of the maps: one set that just jumps to your
|
||||
" search result, one that splits the existing vim window horizontally and
|
||||
" diplays your search result in the new window, and one that does the same
|
||||
" thing, but does a vertical split instead (vim 6 only).
|
||||
"
|
||||
" I've used CTRL-\ and CTRL-@ as the starting keys for these maps, as it's
|
||||
" unlikely that you need their default mappings (CTRL-\'s default use is
|
||||
" as part of CTRL-\ CTRL-N typemap, which basically just does the same
|
||||
" thing as hitting 'escape': CTRL-@ doesn't seem to have any default use).
|
||||
" If you don't like using 'CTRL-@' or CTRL-\, , you can change some or all
|
||||
" of these maps to use other keys. One likely candidate is 'CTRL-_'
|
||||
" (which also maps to CTRL-/, which is easier to type). By default it is
|
||||
" used to switch between Hebrew and English keyboard mode.
|
||||
"
|
||||
" All of the maps involving the <cfile> macro use '^<cfile>$': this is so
|
||||
" that searches over '#include <time.h>" return only references to
|
||||
" 'time.h', and not 'sys/time.h', etc. (by default cscope will return all
|
||||
" files that contain 'time.h' as part of their name).
|
||||
|
||||
|
||||
" To do the first type of search, hit 'CTRL-\', followed by one of the
|
||||
" cscope search types above (s,g,c,t,e,f,i,d). The result of your cscope
|
||||
" search will be displayed in the current window. You can use CTRL-T to
|
||||
" go back to where you were before the search.
|
||||
"
|
||||
|
||||
nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
|
||||
nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
|
||||
nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
|
||||
" Using 'CTRL-spacebar' (intepreted as CTRL-@ by vim) then a search type
|
||||
" makes the vim window split horizontally, with search result displayed in
|
||||
" the new window.
|
||||
"
|
||||
" (Note: earlier versions of vim may not have the :scs command, but it
|
||||
" can be simulated roughly via:
|
||||
" nmap <C-@>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
nmap <C-@>s :scs find s <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@>g :scs find g <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@>c :scs find c <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@>t :scs find t <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@>e :scs find e <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
|
||||
nmap <C-@>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
|
||||
nmap <C-@>d :scs find d <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
|
||||
" Hitting CTRL-space *twice* before the search type does a vertical
|
||||
" split instead of a horizontal one (vim 6 and up only)
|
||||
"
|
||||
" (Note: you may wish to put a 'set splitright' in your .vimrc
|
||||
" if you prefer the new window on the right instead of the left
|
||||
|
||||
nmap <C-@><C-@>s :vert scs find s <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@><C-@>g :vert scs find g <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@><C-@>c :vert scs find c <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@><C-@>t :vert scs find t <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@><C-@>e :vert scs find e <C-R>=expand("<cword>")<CR><CR>
|
||||
nmap <C-@><C-@>f :vert scs find f <C-R>=expand("<cfile>")<CR><CR>
|
||||
nmap <C-@><C-@>i :vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
|
||||
nmap <C-@><C-@>d :vert scs find d <C-R>=expand("<cword>")<CR><CR>
|
||||
|
||||
|
||||
""""""""""""" key map timeouts
|
||||
"
|
||||
" By default Vim will only wait 1 second for each keystroke in a mapping.
|
||||
" You may find that too short with the above typemaps. If so, you should
|
||||
" either turn off mapping timeouts via 'notimeout'.
|
||||
"
|
||||
"set notimeout
|
||||
"
|
||||
" Or, you can keep timeouts, by uncommenting the timeoutlen line below,
|
||||
" with your own personal favorite value (in milliseconds):
|
||||
"
|
||||
"set timeoutlen=4000
|
||||
"
|
||||
" Either way, since mapping timeout settings by default also set the
|
||||
" timeouts for multicharacter 'keys codes' (like <F1>), you should also
|
||||
" set ttimeout and ttimeoutlen: otherwise, you will experience strange
|
||||
" delays as vim waits for a keystroke after you hit ESC (it will be
|
||||
" waiting to see if the ESC is actually part of a key code like <F1>).
|
||||
"
|
||||
"set ttimeout
|
||||
"
|
||||
" personally, I find a tenth of a second to work well for key code
|
||||
" timeouts. If you experience problems and have a slow terminal or network
|
||||
" connection, set it higher. If you don't set ttimeoutlen, the value for
|
||||
" timeoutlent (default: 1000 = 1 second, which is sluggish) is used.
|
||||
"
|
||||
"set ttimeoutlen=100
|
||||
|
||||
endif
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
DEFAULT_SESSION=urxvt
|
||||
|
||||
case $1 in
|
||||
fvwm-crystal)
|
||||
exec fvwm-crystal
|
||||
;;
|
||||
fvwm) exec fvwm
|
||||
;;
|
||||
kde)
|
||||
exec startkde
|
||||
;;
|
||||
xfce4)
|
||||
exec startxfce4
|
||||
;;
|
||||
fluxbox)
|
||||
exec startfluxbox
|
||||
;;
|
||||
*)
|
||||
exec $DEFAULT_SESSION
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,257 @@
|
|||
# XScreenSaver Preferences File
|
||||
# Written by xscreensaver-demo 5.15 for kolan on Mon Feb 6 13:30:55 2012.
|
||||
# http://www.jwz.org/xscreensaver/
|
||||
|
||||
timeout: 0:05:00
|
||||
cycle: 0:01:00
|
||||
lock: True
|
||||
lockTimeout: 0:16:00
|
||||
passwdTimeout: 0:00:30
|
||||
visualID: default
|
||||
installColormap: True
|
||||
verbose: False
|
||||
timestamp: True
|
||||
splash: False
|
||||
splashDuration: 0:00:05
|
||||
demoCommand: xscreensaver-demo
|
||||
prefsCommand: xscreensaver-demo -prefs
|
||||
nice: 10
|
||||
memoryLimit: 0
|
||||
fade: True
|
||||
unfade: False
|
||||
fadeSeconds: 0:00:03
|
||||
fadeTicks: 20
|
||||
captureStderr: True
|
||||
ignoreUninstalledPrograms:False
|
||||
font: *-medium-r-*-140-*-m-*
|
||||
dpmsEnabled: True
|
||||
dpmsQuickOff: True
|
||||
dpmsStandby: 0:08:00
|
||||
dpmsSuspend: 0:08:00
|
||||
dpmsOff: 0:08:00
|
||||
grabDesktopImages: True
|
||||
grabVideoFrames: False
|
||||
chooseRandomImages: True
|
||||
imageDirectory: /home/kolan/wallpapers
|
||||
|
||||
mode: random
|
||||
selected: 109
|
||||
|
||||
textMode: date
|
||||
textLiteral: XScreenSaver
|
||||
textFile: /etc/gentoo-release
|
||||
textProgram: fortune
|
||||
textURL: http://planet.gentoo.org/rss20.xml
|
||||
|
||||
programs: \
|
||||
maze -root \n\
|
||||
- GL: superquadrics -root \n\
|
||||
attraction -root \n\
|
||||
- blitspin -root \n\
|
||||
greynetic -root \n\
|
||||
helix -root \n\
|
||||
hopalong -root \n\
|
||||
- imsmap -root \n\
|
||||
- noseguy -root \n\
|
||||
pyro -root \n\
|
||||
qix -root \n\
|
||||
rocks -root \n\
|
||||
rorschach -root \n\
|
||||
decayscreen -root \n\
|
||||
flame -root \n\
|
||||
halo -root \n\
|
||||
- slidescreen -root \n\
|
||||
pedal -root \n\
|
||||
bouboule -root \n\
|
||||
- braid -root \n\
|
||||
coral -root \n\
|
||||
deco -root \n\
|
||||
- drift -root \n\
|
||||
fadeplot -root \n\
|
||||
galaxy -root \n\
|
||||
- goop -root \n\
|
||||
grav -root \n\
|
||||
ifs -root \n\
|
||||
- GL: jigsaw -root \n\
|
||||
julia -root \n\
|
||||
kaleidescope -root \n\
|
||||
- GL: moebius -root \n\
|
||||
moire -root \n\
|
||||
- GL: morph3d -root \n\
|
||||
mountain -root \n\
|
||||
munch -root \n\
|
||||
penrose -root \n\
|
||||
GL: pipes -root \n\
|
||||
rd-bomb -root \n\
|
||||
- GL: rubik -root \n\
|
||||
sierpinski -root \n\
|
||||
- slip -root \n\
|
||||
- GL: sproingies -root \n\
|
||||
starfish -root \n\
|
||||
strange -root \n\
|
||||
swirl -root \n\
|
||||
triangle -root \n\
|
||||
- xjack -root \n\
|
||||
- xlyap -root \n\
|
||||
- GL: atlantis -root \n\
|
||||
bsod -root \n\
|
||||
- GL: bubble3d -root \n\
|
||||
- GL: cage -root \n\
|
||||
crystal -root \n\
|
||||
cynosure -root \n\
|
||||
- discrete -root \n\
|
||||
- distort -root \n\
|
||||
epicycle -root \n\
|
||||
- flow -root \n\
|
||||
- GL: glplanet -root \n\
|
||||
- interference -root \n\
|
||||
- kumppa -root \n\
|
||||
- GL: lament -root \n\
|
||||
moire2 -root \n\
|
||||
GL: sonar -root \n\
|
||||
- GL: stairs -root \n\
|
||||
truchet -root \n\
|
||||
- vidwhacker -root \n\
|
||||
blaster -root \n\
|
||||
- bumps -root \n\
|
||||
ccurve -root \n\
|
||||
compass -root \n\
|
||||
- deluxe -root \n\
|
||||
demon -root \n\
|
||||
- GL: extrusion -root \n\
|
||||
loop -root \n\
|
||||
- penetrate -root \n\
|
||||
petri -root \n\
|
||||
- phosphor -root \n\
|
||||
GL: pulsar -root \n\
|
||||
- ripples -root \n\
|
||||
shadebobs -root \n\
|
||||
GL: sierpinski3d -root \n\
|
||||
- spotlight -root \n\
|
||||
squiral -root \n\
|
||||
wander -root \n\
|
||||
- webcollage -root \n\
|
||||
- xflame -root \n\
|
||||
xmatrix -root \n\
|
||||
- GL: gflux -root \n\
|
||||
nerverot -root \n\
|
||||
xrayswarm -root \n\
|
||||
xspirograph -root \n\
|
||||
- GL: circuit -root \n\
|
||||
GL: dangerball -root \n\
|
||||
- GL: dnalogo -root \n\
|
||||
- GL: engine -root \n\
|
||||
- GL: flipscreen3d -root \n\
|
||||
- GL: gltext -root \n\
|
||||
GL: menger -root \n\
|
||||
- GL: molecule -root \n\
|
||||
- rotzoomer -root \n\
|
||||
- speedmine -root \n\
|
||||
GL: starwars -root \n\
|
||||
GL: stonerview -root \n\
|
||||
vermiculate -root \n\
|
||||
- whirlwindwarp -root \n\
|
||||
- zoom -root \n\
|
||||
anemone -root \n\
|
||||
apollonian -root \n\
|
||||
- GL: boxed -root \n\
|
||||
- GL: cubenetic -root \n\
|
||||
- GL: endgame -root \n\
|
||||
- euler2d -root \n\
|
||||
- fluidballs -root \n\
|
||||
- GL: flurry -root \n\
|
||||
- GL: glblur -root \n\
|
||||
GL: glsnake -root \n\
|
||||
- halftone -root \n\
|
||||
- GL: juggler3d -root \n\
|
||||
- GL: lavalite -root \n\
|
||||
polyominoes -root \n\
|
||||
- GL: queens -root \n\
|
||||
- GL: sballs -root \n\
|
||||
- GL: spheremonics -root \n\
|
||||
thornbird -root \n\
|
||||
- twang -root \n\
|
||||
- GL: antspotlight -root \n\
|
||||
- apple2 -root \n\
|
||||
- GL: atunnel -root \n\
|
||||
barcode -root \n\
|
||||
- GL: blinkbox -root \n\
|
||||
- GL: blocktube -root \n\
|
||||
- GL: bouncingcow -root \n\
|
||||
cloudlife -root \n\
|
||||
GL: cubestorm -root \n\
|
||||
- eruption -root \n\
|
||||
- GL: flipflop -root \n\
|
||||
- GL: flyingtoasters -root \n\
|
||||
- fontglide -root \n\
|
||||
GL: gleidescope -root \n\
|
||||
- GL: glknots -root \n\
|
||||
GL: glmatrix -root \n\
|
||||
- GL: glslideshow -root \n\
|
||||
- GL: hypertorus -root \n\
|
||||
- GL: jigglypuff -root \n\
|
||||
- metaballs -root \n\
|
||||
- GL: mirrorblob -root \n\
|
||||
- piecewise -root \n\
|
||||
GL: polytopes -root \n\
|
||||
- pong -root \n\
|
||||
popsquares -root \n\
|
||||
GL: surfaces -root \n\
|
||||
- xanalogtv -root \n\
|
||||
abstractile -root \n\
|
||||
anemotaxis -root \n\
|
||||
- GL: antinspect -root \n\
|
||||
- fireworkx -root \n\
|
||||
- fuzzyflakes -root \n\
|
||||
- interaggregate -root \n\
|
||||
intermomentary -root \n\
|
||||
memscroller -root \n\
|
||||
- GL: noof -root \n\
|
||||
pacman -root \n\
|
||||
- GL: pinion -root \n\
|
||||
- GL: polyhedra -root \n\
|
||||
- GL: providence -root \n\
|
||||
substrate -root \n\
|
||||
- wormhole -root \n\
|
||||
- GL: antmaze -root \n\
|
||||
- GL: boing -root \n\
|
||||
boxfit -root \n\
|
||||
- GL: carousel -root \n\
|
||||
celtic -root \n\
|
||||
- GL: crackberg -root \n\
|
||||
GL: cube21 -root \n\
|
||||
- fiberlamp -root \n\
|
||||
- GL: fliptext -root \n\
|
||||
- GL: glhanoi -root \n\
|
||||
GL: tangram -root \n\
|
||||
- GL: timetunnel -root \n\
|
||||
- GL: glschool -root \n\
|
||||
- GL: topblock -root \n\
|
||||
GL: cubicgrid -root \n\
|
||||
cwaves -root \n\
|
||||
- GL: gears -root \n\
|
||||
GL: glcells -root \n\
|
||||
GL: lockward -root \n\
|
||||
- m6502 -root \n\
|
||||
- GL: moebiusgears -root \n\
|
||||
GL: voronoi -root \n\
|
||||
- GL: hypnowheel -root \n\
|
||||
- GL: klein -root \n\
|
||||
lcdscrub -root \n\
|
||||
- GL: photopile -root \n\
|
||||
- GL: skytentacles -root \n\
|
||||
- GL: rubikblocks -root \n\
|
||||
- GL: companioncube -root \n\
|
||||
- GL: hilbert -root \n\
|
||||
GL: tronbit -root \n\
|
||||
|
||||
|
||||
pointerPollTime: 0:00:05
|
||||
pointerHysteresis: 10
|
||||
windowCreationTimeout:0:00:30
|
||||
initialDelay: 0:00:00
|
||||
GetViewPortIsFullOfLies:False
|
||||
procInterrupts: True
|
||||
xinputExtensionDev: False
|
||||
overlayStderr: True
|
||||
|
Loading…
Reference in New Issue