vnews 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +1 -0
- data/lib/vnews/sql.rb +1 -1
- data/lib/vnews/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
|
@@ -134,6 +134,7 @@ in one consolidated list.
|
|
|
134
134
|
* `SPACE` toggles full-screen mode for the current window.
|
|
135
135
|
* `C-j` shows the next item without changing window focus
|
|
136
136
|
* `C-k` shows the previous item without changing window focus
|
|
137
|
+
* `q` from the item window closes it (and reopens the item list window if necessary)
|
|
137
138
|
|
|
138
139
|
You can also use the standard Vim window switching, rotating, and
|
|
139
140
|
positioning commands.
|
data/lib/vnews/sql.rb
CHANGED
|
@@ -176,7 +176,7 @@ class Vnews
|
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
def search_items(term)
|
|
179
|
-
query = "select * from items where match(title, text) against('#{e term}')"
|
|
179
|
+
query = "select * from items where match(title, text) against('#{e term}') order by pub_date asc"
|
|
180
180
|
@client.query query
|
|
181
181
|
end
|
|
182
182
|
|
data/lib/vnews/version.rb
CHANGED