Skip to content

Commit 76605d9

Browse files
authored
Add files via upload
Added geany snippets.
1 parent 0d98961 commit 76605d9

File tree

2 files changed

+369
-0
lines changed

2 files changed

+369
-0
lines changed

geany.conf

+227
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
[geany]
2+
default_open_path=
3+
cmdline_new_files=true
4+
notebook_double_click_hides_widgets=false
5+
tab_close_switch_to_mru=false
6+
tab_pos_sidebar=2
7+
sidebar_pos=0
8+
symbols_sort_mode=0
9+
msgwin_orientation=1
10+
highlighting_invert_all=false
11+
pref_main_search_use_current_word=true
12+
check_detect_indent=false
13+
detect_indent_width=false
14+
use_tab_to_indent=true
15+
pref_editor_tab_width=2
16+
indent_mode=2
17+
indent_type=0
18+
virtualspace=1
19+
autocomplete_doc_words=false
20+
completion_drops_rest_of_word=false
21+
autocompletion_max_entries=30
22+
autocompletion_update_freq=250
23+
color_scheme=
24+
mru_length=10
25+
disk_check_timeout=30
26+
show_editor_scrollbars=true
27+
brace_match_ltgt=false
28+
use_gtk_word_boundaries=true
29+
complete_snippets_whilst_editing=false
30+
use_atomic_file_saving=false
31+
gio_unsafe_save_backup=false
32+
use_gio_unsafe_file_saving=true
33+
keep_edit_history_on_reload=true
34+
show_keep_edit_history_on_reload_msg=false
35+
indent_hard_tab_width=8
36+
find_selection_type=0
37+
extract_filetype_regex=-\\*-\\s*([^\\s]+)\\s*-\\*-
38+
replace_and_find_by_default=true
39+
show_symbol_list_expanders=true
40+
compiler_tab_autoscroll=true
41+
allow_always_save=false
42+
statusbar_template=line: %l / %L col: %c sel: %s %w %t %mmode: %M encoding: %e filetype: %f scope: %S
43+
new_document_after_close=false
44+
msgwin_status_visible=true
45+
msgwin_compiler_visible=true
46+
msgwin_messages_visible=true
47+
msgwin_scribble_visible=true
48+
documents_show_paths=true
49+
sidebar_page=0
50+
pref_main_load_session=true
51+
pref_main_project_session=true
52+
pref_main_project_file_in_basedir=false
53+
pref_main_save_winpos=true
54+
pref_main_confirm_exit=false
55+
pref_main_suppress_status_messages=false
56+
switch_msgwin_pages=false
57+
beep_on_errors=true
58+
auto_focus=false
59+
sidebar_symbol_visible=true
60+
sidebar_openfiles_visible=true
61+
editor_font=Monospace 10
62+
tagbar_font=Sans 9
63+
msgwin_font=Monospace 9
64+
show_notebook_tabs=true
65+
show_tab_cross=true
66+
tab_order_ltr=true
67+
tab_order_beside=false
68+
tab_pos_editor=2
69+
tab_pos_msgwin=0
70+
use_native_windows_dialogs=false
71+
show_indent_guide=false
72+
show_white_space=false
73+
show_line_endings=false
74+
show_markers_margin=true
75+
show_linenumber_margin=true
76+
long_line_enabled=true
77+
long_line_type=0
78+
long_line_column=72
79+
long_line_color=#C2EBC2
80+
symbolcompletion_max_height=10
81+
symbolcompletion_min_chars=4
82+
use_folding=true
83+
unfold_all_children=false
84+
use_indicators=true
85+
line_wrapping=false
86+
auto_close_xml_tags=true
87+
complete_snippets=true
88+
auto_complete_symbols=true
89+
pref_editor_disable_dnd=false
90+
pref_editor_smart_home_key=true
91+
pref_editor_newline_strip=false
92+
line_break_column=72
93+
auto_continue_multiline=true
94+
comment_toggle_mark=~
95+
scroll_stop_at_last_line=true
96+
autoclose_chars=24
97+
pref_editor_default_new_encoding=UTF-8
98+
pref_editor_default_open_encoding=None
99+
default_eol_character=2
100+
pref_editor_new_line=true
101+
pref_editor_ensure_convert_line_endings=false
102+
pref_editor_replace_tabs=false
103+
pref_editor_trail_space=false
104+
pref_toolbar_show=true
105+
pref_toolbar_append_to_menu=false
106+
pref_toolbar_use_gtk_default_style=true
107+
pref_toolbar_use_gtk_default_icon=true
108+
pref_toolbar_icon_style=0
109+
pref_toolbar_icon_size=0
110+
pref_template_developer=abhishek
111+
pref_template_company=
112+
pref_template_mail=abhiy13@abhishek
113+
pref_template_initial=abhiy13
114+
pref_template_version=1.0
115+
pref_template_year=%Y
116+
pref_template_date=%Y-%m-%d
117+
pref_template_datetime=%d.%m.%Y %H:%M:%S %Z
118+
context_action_cmd=
119+
sidebar_visible=true
120+
statusbar_visible=true
121+
msgwindow_visible=true
122+
fullscreen=false
123+
scribble_text=dashboar
124+
scribble_pos=0
125+
treeview_position=119
126+
msgwindow_position=525
127+
geometry=0;24;1366;744;1;
128+
custom_date_format=
129+
130+
[build-menu]
131+
number_ft_menu_items=0
132+
number_non_ft_menu_items=0
133+
number_exec_menu_items=0
134+
135+
[search]
136+
pref_search_hide_find_dialog=false
137+
pref_search_always_wrap=false
138+
pref_search_current_file_dir=true
139+
find_all_expanded=true
140+
replace_all_expanded=true
141+
position_find_x=390
142+
position_find_y=298
143+
position_replace_x=854
144+
position_replace_y=96
145+
position_fif_x=-1
146+
position_fif_y=-1
147+
fif_regexp=false
148+
fif_case_sensitive=true
149+
fif_match_whole_word=false
150+
fif_invert_results=false
151+
fif_recursive=false
152+
fif_extra_options=
153+
fif_use_extra_options=false
154+
fif_files=
155+
fif_files_mode=0
156+
find_regexp=false
157+
find_regexp_multiline=false
158+
find_case_sensitive=false
159+
find_escape_sequences=false
160+
find_match_whole_word=false
161+
find_match_word_start=false
162+
find_close_dialog=true
163+
replace_regexp=false
164+
replace_regexp_multiline=false
165+
replace_case_sensitive=true
166+
replace_escape_sequences=false
167+
replace_match_whole_word=false
168+
replace_match_word_start=false
169+
replace_search_backwards=false
170+
replace_close_dialog=true
171+
172+
[plugins]
173+
load_plugins=true
174+
custom_plugin_path=
175+
active_plugins=;
176+
177+
[tools]
178+
terminal_cmd=x-terminal-emulator -e "/bin/sh %c"
179+
browser_cmd=sensible-browser
180+
grep_cmd=grep
181+
182+
[printing]
183+
print_cmd=lpr '%f'
184+
use_gtk_printing=true
185+
print_line_numbers=true
186+
print_page_numbers=true
187+
print_page_header=true
188+
page_header_basename=false
189+
page_header_datefmt=%c
190+
191+
[VTE]
192+
load_vte=true
193+
emulation=xterm
194+
send_selection_unsafe=false
195+
send_cmd_prefix=
196+
font=Monospace 10
197+
scroll_on_key=true
198+
scroll_on_out=true
199+
enable_bash_keys=true
200+
ignore_menu_bar_accel=false
201+
follow_path=false
202+
run_in_vte=false
203+
skip_run_script=false
204+
cursor_blinks=false
205+
scrollback_lines=500
206+
image=
207+
shell=/bin/bash
208+
colour_fore=#FFFFFF
209+
colour_back=#000000
210+
last_dir=/home/abhiy13/Documents/COMP
211+
212+
[project]
213+
session_file=
214+
project_file_path=/home/abhiy13/projects
215+
216+
[files]
217+
recent_files=/home/abhiy13/Documents/COMP/OCT18B/CCIRCLES.cpp;/home/abhiy13/Documents/COMP/OCT18B/test.cpp;/home/abhiy13/Documents/COMP/OCT18B/HMAPPTpartial.cpp;/home/abhiy13/Documents/COMP/OCT18B/HMAPPY4.cpp;/home/abhiy13/Documents/COMP/OCT18B/HMAPPY3.cpp;/home/abhiy13/Documents/COMP/OCT18B/HMAPPY2.cpp;/home/abhiy13/Documents/COMP/OCT18B/IGNITION2/A.cpp;/home/abhiy13/Documents/COMP/OCT18B/BITOBYT.cpp;/home/abhiy13/Documents/COMP/OCT18B/CHSERVE.py;/home/abhiy13/Documents/COMP/OCT18B/input.txt;
218+
recent_projects=
219+
current_page=4
220+
FILE_NAME_0=1072;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FHMAPPY.cpp;0;2
221+
FILE_NAME_1=909;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FHMAPPY2.cpp;0;2
222+
FILE_NAME_2=0;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FHMAPPY3.cpp;0;2
223+
FILE_NAME_3=556;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FHMAPPY4.cpp;0;2
224+
FILE_NAME_4=731;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FHMAPPTpartial.cpp;0;2
225+
FILE_NAME_5=20;None;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2Fin;0;2
226+
FILE_NAME_6=0;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2Ftest.cpp;0;2
227+
FILE_NAME_7=383;C++;0;EUTF-8;0;1;0;%2Fhome%2Fabhiy13%2FDocuments%2FCOMP%2FOCT18B%2FCCIRCLES.cpp;0;2

snippets.conf

+142
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Geany's snippets configuration file
2+
#
3+
# use \n or %newline% for a new line (it will be replaced by the used EOL char(s) - LF, CR/LF, CR).
4+
# use \t or %ws% for an indentation step, it will be replaced according to the current document's indent mode.
5+
# use \s to force whitespace at beginning or end of a value ('key= value' won't work, use 'key=\svalue').
6+
# use %key% for all keys defined in the [Special] section.
7+
# use %cursor% to define where the cursor should be placed after completion. You can define multiple
8+
# %cursor% wildcards and use the "Move cursor in snippet" to jump to the next defined cursor
9+
# position in the completed snippet.
10+
# You can define a section for each supported filetype to overwrite default settings, the section
11+
# name must match exactly the internal filetype name, run 'geany --ft-names' for a full list.
12+
#
13+
# Additionally, you can use most of the template wildcards like {developer}, {command:...},
14+
# or {date} in the snippets.
15+
# See the documentation for details.
16+
17+
# For a list of available filetype names, execute:
18+
# geany --ft-names
19+
20+
# Default is used for all filetypes and keys can be overwritten by [filetype] sections
21+
[Default]
22+
23+
# special keys to be used in other snippets, cannot be used "standalone"
24+
# can be used by %key%, e.g. %brace_open%
25+
# nesting of special keys is not supported (e.g. brace_open=\n{\n%brace_close% won't work)
26+
# key "wordchars" is very special, it defines the word delimiting characters when looking for
27+
# a word to auto complete, leave commented to use the default wordchars
28+
[Special]
29+
brace_open=\n{\n\t
30+
brace_close=}\n
31+
block=\n{\n\t%cursor%\n}
32+
block_cursor=\n{\n\t%cursor%\n}\n%cursor%
33+
#wordchars=_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
34+
35+
# Optional keybindings to insert snippets
36+
# Note: these can be overridden by Geany's configurable keybindings
37+
[Keybindings]
38+
#for=<Ctrl>7
39+
40+
[C]
41+
if=if (%cursor%)%block_cursor%
42+
else=else%block_cursor%
43+
for=for (i = 0; i < %cursor%; i++)%block_cursor%
44+
while=while (%cursor%)%block_cursor%
45+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
46+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
47+
48+
[C++]
49+
if=if (%cursor%)%block_cursor%
50+
else=else%block_cursor%
51+
for=for (int i = 0; i < %cursor%; i++)%brace_open%\n%brace_close%
52+
while=while (%cursor%)%block_cursor%
53+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
54+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
55+
try=try%block%\ncatch (%cursor%)%block_cursor%
56+
template=//abhiy13\n#include <bits/stdc++.h>\n\tusing namespace std;\n\nint main(){\n\tios::sync_with_stdio(false);\n\tint T;\n\tcin >> T;\n\twhile(T--){\n\n\t}\n\treturn 0;\n}
57+
debug=string to_string(string s) {\n\treturn '"' + s + '"';\n}\nstring to_string(const char* s) {\n\treturn to_string((string) s);\n}\nstring to_string(bool b) {\n\treturn (b ? "true" : "false");\n}\ntemplate <typename A, typename B>\nstring to_string(pair<A, B> p) {\nreturn "(" + to_string(p.first) + ", " + to_string(p.second) + ")";\n}\ntemplate <typename A>\nstring to_string(A v) {\n\tbool first = true;\n\tstring res = "{";\n\tfor (const auto &x : v) {\n\t\tif (!first) {\n\t\t\tres += ", ";\n\t\t}\n\t\tfirst = false;\n\t\tres += to_string(x);\n\t}\n\tres += "}";\n\treturn res;\n}\nvoid print() { cerr << endl; }\ntemplate <typename Head, typename... Tail>\nvoid print(Head H, Tail... T) {\n\tcerr << " " << to_string(H);\n\tprint(T...);\n}\n#ifdef ABHI\n#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", print(__VA_ARGS__)\n#else\n#define debug(...) 42\n#endif\n
58+
59+
[Java]
60+
if=if (%cursor%)%block_cursor%
61+
else=else%block_cursor%
62+
for=for (int i = 0; i < %cursor%; i++)%brace_open%\n%brace_close%
63+
while=while (%cursor%)%block_cursor%
64+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
65+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
66+
try=try%block%\ncatch (%cursor%)%block_cursor%
67+
68+
[PHP]
69+
if=if (%cursor%)%block_cursor%
70+
else=else%block_cursor%
71+
for=for ($i = 0; $i < %cursor%; $i++)%brace_open%\n%brace_close%
72+
while=while (%cursor%)%block_cursor%
73+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
74+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
75+
try=try%block%\ncatch (%cursor%)%block_cursor%
76+
77+
[Javascript]
78+
if=if (%cursor%)%block_cursor%
79+
else=else%block_cursor%
80+
for=for (i = 0; i < %cursor%; i++)%block_cursor%
81+
while=while (%cursor%)%block_cursor%
82+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
83+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
84+
try=try%block%\ncatch (%cursor%)%block_cursor%
85+
86+
[C#]
87+
if=if (%cursor%)%block_cursor%
88+
else=else%block_cursor%
89+
for=for (i = 0; i < %cursor%; i++)%block_cursor%
90+
while=while (%cursor%)%block_cursor%
91+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
92+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
93+
try=try%block%\ncatch (%cursor%)%block_cursor%
94+
95+
[Vala]
96+
if=if (%cursor%)%block_cursor%
97+
else=else%block_cursor%
98+
for=for (i = 0; i < %cursor%; i++)%block_cursor%
99+
while=while (%cursor%)%block_cursor%
100+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
101+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
102+
try=try%block%\ncatch (%cursor%)%block_cursor%
103+
104+
[ActionScript]
105+
if=if (%cursor%)%block_cursor%
106+
else=else%block_cursor%
107+
for=for (i = 0; i < %cursor%; i++)%block_cursor%
108+
while=while (%cursor%)%block_cursor%
109+
do=do\n{\n\t%cursor%\n} while (%cursor%)\n%cursor%
110+
switch=switch (%cursor%)%brace_open%case %cursor%:\n\t\t%cursor%\n\t\tbreak;\n\tdefault:\n\t\t%cursor%\n%brace_close%%cursor%
111+
try=try%block%\ncatch (%cursor%)%block_cursor%
112+
113+
[Python]
114+
for=for i in xrange(%cursor%):\n\t
115+
if=if %cursor%:\n\t
116+
elif=elif %cursor%:\n\t
117+
else=else:\n\t
118+
while=while %cursor%:\n\t
119+
try=try:\n\t%cursor%\nexcept Exception, ex:\n\t
120+
with=with %cursor%:\n\t
121+
def=def %cursor% (%cursor%):\n\t""" Function doc """\n\t
122+
class=class %cursor%:\n\t""" Class doc """\n\t\n\tdef __init__ (self):\n\t\t""" Class initialiser """\n\t\tpass
123+
124+
[Ferite]
125+
iferr=iferr%block_cursor%fix%block%
126+
monitor=monitor%block_cursor%handle%block%
127+
128+
[Haskell]
129+
130+
[HTML]
131+
table=<table>\n\t<tr>\n\t\t<td>%cursor%</td>\n\t</tr>\n</table>
132+
133+
[Erlang]
134+
case=case %cursor% of\n\t%cursor% -> %cursor%\nend
135+
if=if\n\t%cursor% -> %cursor%\nend
136+
begin=begin\n\t%cursor%\nend
137+
fun=fun(%cursor%) ->\n\t%cursor%\nend
138+
try=try %cursor% of\n\t%cursor% ->\n\t%cursor%\ncatch\n\t%cursor% ->\n\t%cursor%\nend
139+
module=-module(%cursor%).
140+
export=-export(%cursor%).
141+
compile=-compile(%cursor%).
142+
include=-include(%cursor%).

0 commit comments

Comments
 (0)