Hannes Schueller
cdd673f6f4
awesome-menu: make autocomplete behaviour configurable (FS#336)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-03 08:59:46 +02:00
Hannes
4ee816510f
awesome-menu: match string mode and autocomplete
...
I'm made some simple modifications of awesome-menu.c
to achieve the following:
1. Match the string entered by the user with the whole search string.
So far, it only matches from the start of the string. For menu entries
like 'gksu synaptic', the default behaviour is very inconvenient,
because obviously, I don't want to enter the 'gksu' part every time.
Another example: I have iceweasel, iceape and icedove installed.
Entering 'wea' is enough to find 'iceweasel' exclusively if the whole
string is searched. 'ice', on the other hand, won't do much good.
2. If there's just one single match, select that one automatically.
This saves hitting tab once in the cases when the choice is obvious
(because there is only one).
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-01 10:40:47 +02:00
Nikos Ntarmos
ef60378754
[common] remove and getline and strndup usage
...
There is no getline() on FreeBSD, nor any strndup().
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-19 23:08:18 +02:00
Julien Danjou
7a220718d2
[awesome-menu] Grab keyboard earlier if stdin is not a tty
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-04-01 16:43:18 +02:00
Julien Danjou
ce117df401
[awesome-menu] Map when finished to draw
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 15:50:29 +02:00
Julien Danjou
99c9e00d99
[awesome-menu] Remember the last completion request (FS#136)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 15:32:41 +02:00
Julien Danjou
ff44fc44ca
[awesome-menu] Documente code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-31 14:25:59 +02:00
Julien Danjou
d5d1319821
Do not start to OpenDisplay before reading command line options
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-25 16:56:47 +01:00
marco candrian
b92a292e43
additional line width argument to draw_rectangle[_gradient] in draw.c
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
1d468c5583
Lot of cosmetic changes: proto change, etc.
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:22 +01:00
Julien Danjou
accf223bb1
Use warn() instead of perror()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
c7e821a54a
Remove sizeof() usage
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Arnaud Fontaine
77dfdd2928
Remove PATH_MAX usage from awesome-menu
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
9204066788
Begin to use validate function in config handling
2008-03-23 15:52:21 +01:00
Arnaud Fontaine
7743e71837
Add missing includes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:20 +01:00
Julien Danjou
74777016af
Documente existing -c option of awesome-menu
2008-03-23 15:52:19 +01:00
Julien Danjou
c6eec955c8
Rename Area to area_t
2008-03-23 15:52:18 +01:00
Julien Danjou
d10b98c101
Make awesome-{menu,message} Xinerama aware
2008-03-23 15:52:18 +01:00
Julien Danjou
fa47024714
Change colors infrastructure to style: rename colors_ctx_t to style_t and add font in it
2008-03-23 15:52:18 +01:00
Julien Danjou
9dfd488dda
Change colors handling
2008-03-23 15:52:18 +01:00
Arnaud Fontaine
fc9e31ff62
get rid of PATH_MAX
...
I replaced stack memory allocations with PATH_MAX by heap memory
allocations on post-2.2 branch because PATH_MAX isn't necessary defined
according to POSIX specification. For instance GNU/Hurd doesn't have
PATH size restriction, thus doesn't defined PATH_MAX and compilation
will fail.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:17 +01:00
Julien Danjou
6b4c9fed83
Remove useless ; after DO_SLIST macro
2008-03-23 15:52:17 +01:00
Julien Danjou
0a980095b3
Rework colors stuff, add a common colors_ctx_t containing colors and shadow options
2008-03-23 15:52:17 +01:00
Julien Danjou
cbc5ec8060
Use common/xscreen infra to get screens info
2008-03-23 15:52:17 +01:00
Julien Danjou
8db08ea43e
[awesome-menu] Fix a problem with XK_Tab completion and with "." listing
2008-03-23 15:52:17 +01:00
Julien Danjou
f3652aaca6
Add a pointer to SLIST struct to store previous element
...
This will make back cycling faster
2008-03-23 15:52:17 +01:00
Julien Danjou
6d5d2e68d6
[awesome-menu] Add a final / to directory names
2008-03-23 15:52:17 +01:00
Julien Danjou
6b06e6808a
[awesome-menu] Add support for ~user path
2008-03-23 15:52:17 +01:00
Julien Danjou
33560c393d
[awesome-menu] Check that we have enough width to draw our items
2008-03-23 15:52:17 +01:00
Julien Danjou
4a41a50a39
[awesome-menu] Better handling of selected item that are drawn in the end of the list
2008-03-23 15:52:17 +01:00
Julien Danjou
e668bf8dc3
[awesome-menu] Fix problem with filling via stdin was overwritten
2008-03-23 15:52:17 +01:00
Julien Danjou
e6b3aa92f5
[awesome-menu] Remove a bunch of useless keybindings and add support for ISO_Left_Tab
2008-03-23 15:52:17 +01:00
Julien Danjou
f00008938f
[awesome-menu] Fix wrong size in a_strcpy()
2008-03-23 15:52:17 +01:00
Julien Danjou
5b2e9c0139
[awesome-menu] Fix infinite loop on bad completion
2008-03-23 15:52:16 +01:00
Julien Danjou
a5f0df0c95
[awesome-menu] Add support for empty prompt
2008-03-23 15:52:16 +01:00
Julien Danjou
1fb61f54df
[awesome-menu] Remove command line option and add support for menu {} in conffile
2008-03-23 15:52:16 +01:00
Julien Danjou
cb525dd4ba
[awesome-menu] rewrite handling of ~ which was too buggy
2008-03-23 15:52:16 +01:00
Julien Danjou
df8e3abf50
[awesome-menu] item_list_fill_file() now returns a Bool and support for ~ as directory
2008-03-23 15:52:16 +01:00
Julien Danjou
9d14cca8e0
[awesome-menu] Make compute_match() take an arg, and rewrite conditions
2008-03-23 15:52:16 +01:00
Julien Danjou
7cbd82011b
[awesome-menu] Change item_list_fill_file() proto to take directory as arg
2008-03-23 15:52:16 +01:00
Julien Danjou
5b7200daf2
[awesome-menu] Try harder to grab keyboard
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:16 +01:00
Julien Danjou
cd28b2357b
[awesome-menu] Make completion cyclic
2008-03-23 15:52:16 +01:00
Julien Danjou
6ebf5b5032
[awesome-menu] Fix some completion error
2008-03-23 15:52:16 +01:00
Julien Danjou
f3c632aebf
[awesome-menu] Complete file completion
2008-03-23 15:52:16 +01:00
Julien Danjou
b5ad123e60
[awesome-menu] Add preliminary support for file completion
2008-03-23 15:52:16 +01:00
Julien Danjou
6c88ddc63e
[awesome-menu] Cosmetic changes; init var with nice value and remove else statement
2008-03-23 15:52:16 +01:00
Julien Danjou
6161fc2130
Fix regression, set selected_item_is_drawn to True when selected has been drawn.
2008-03-23 15:52:15 +01:00
Julien Danjou
4451e9099e
Add support for text shadow, add new text_shadow_offset option.
2008-03-23 15:52:15 +01:00
Julien Danjou
ddd4f1c43b
Refactorize item drawing: add draw_item() function
2008-03-23 15:52:15 +01:00
Julien Danjou
e5069d1b8c
Add Xinerama support to awesome-menu and fix a bug with wrong displaying when selecting an item
2008-03-23 15:52:15 +01:00