Commit Graph

30 Commits

Author SHA1 Message Date
James E. Blair 94310529ed Add WIP support
Change-Id: I3b690c3bffdb1ca534e42cef0c3c7d9b797f7e80
2020-12-18 11:02:33 -08:00
James E. Blair 87d0f36c50 Add support for hashtags
Change-Id: Ib05f472be87b84a29157cfb158effb33c49ba458
2019-08-28 15:10:18 +02:00
James E. Blair 77f9fa5602 Add prev/next patchset keys to diff view
Add '<' and '>' keybindings which are used for diffing pairs of
patchsets.  '<' moves to the previous pair, '>' to the next.

Change-Id: I46d24f6e62f113e16be2445a8e52384086c01c8e
2019-06-18 09:48:05 -07:00
Doug Wiegley 0ff7b5ef5b
Add ctrl-v/meta-v bindings for page-up/page-down
Many of the other keybindings seem to have emacs defaults, so add
page-up/page-down, for use on laptop keyboards without real page
keys.

Change-Id: I02bd8bebe9bfea89133d2eb28322bcf5fabaacf8
2019-02-18 12:24:50 -07:00
James E. Blair 7a149db6cf Show potential completions
When entering multi-key commands, display potential completions
in the status bar as a reminder to the user.

Change-Id: I498781576a60789b0f810f08cbc9c8c74d52784f
2016-05-02 11:00:40 -05:00
James E. Blair 3c333acd7c Make sorting commands use two two keys
And add sort by last seen.

As we add more sorting features, they keymap is getting crowded.
Since most of the time folks will probably set their preferred sort
in the config file, make changing the sort a two-key process.  This
also lets them be somewhat more intuitive due to reduced collisions.

Change-Id: I9e7b23f7036f10525d10268f9b3af8296cabdf69
2016-02-10 07:57:03 -08:00
Jim Rollenhagen 2d1113577a Add vi mode navigation
Add basic hjkl navigation for vi keymap.

Change-Id: I1762fc1a1fa36a5d2453809b78f34b33f4687e48
2016-01-15 09:12:15 -08:00
Jay Pipes 74877d2499 Allow gertty to run in Py3K environments
In environments without py27, gertty was unable to run. This patch
addresses all the Py3K issues discovered when getting gertty running in
a py34-only environment.

Change-Id: I32a06f9768bdeaf8e95ddf9a9e54c79059fbaa2f
2016-01-15 09:10:31 -08:00
James E. Blair 429668601b Add a vi keymap
This way vi users can contribute vi keybindings here and everyone
will be able to benefit.  Use "gertty -k vi" or add "keymap: vi"
to the config file.

Change-Id: Iac5db63f8f5394ab874079a6047ddc3a14ec7c22
2016-01-13 13:13:21 -08:00
James E. Blair cfa725cf1e Add project topics
Adds project topics so that projects may be grouped together.

Change-Id: I0216d802ccc0586ffce0182c2c8806d5df54cc2f
2016-01-06 14:18:55 -08:00
James E. Blair 540c8dd7cc Support multiple key input
Change-Id: I0cd0884e0e1f4f0fa82f93e5f7438ff00c5a992a
2015-12-04 13:08:05 -08:00
James E. Blair 0d0f0f6dcd Add interactive search to diff view
Add a simple interactive search to the diff view.  This is bound
to C-s by default.  It highlights text, but does not yet navigate.

Change-Id: Ic795bb5d18911590237b6595f812e10fd4baa1ce
2015-12-04 13:08:05 -08:00
James E. Blair c8d81b7693 Add a simple kill ring
Create a global app kill ring and a custom edit widget that can
kill and yank from it.  Also, add Emacs beginning/end of line
keys to the default keymap.

Change-Id: I18d8d47694c89ede4dcec7eaf5d3fb2210ef4438
2015-12-04 13:08:00 -08:00
James E. Blair b0f595b1c1 Separate search and refine search commands
Being able to refine a search query is useful, but so is being able
to quickly open a specific change from anywhere.  Separate these
commands.  C-o opens a blank search input; M-o opens a search input
pre-filled with th ecurrent query in list view.

Change-Id: I49d0f076354322a2652de515d476548926a99182
2015-11-08 15:28:06 -08:00
Paul Bourke 3b2b671ce4 Change key binding for reverse sort to shift-r ('R')
The addition of the ability to review multiple changes at once from the
change_list view duplicates the reverse_order keybinding. They both use
'r'.

Change the reverse_order binding to 'R'.

See, https://storyboard.openstack.org/#!/story/2000290

Change-Id: I3728948a55060ff9f1bd28352474fc4479e68ab9
2015-10-27 00:50:21 +00:00
James E. Blair 94bfcd13f4 Add ability to review multiple changes at once
Add a process mark to the change list so that multiple changes may
be selected at once for further operations.  Allow multiple changes
to be reviwed at once by selecting them with the process mark and
then pressing the usual review command key.  The categories are
simply taken from the first change in the list for simplicity.
This should be fine most of the time, but if the changes have
different categories available to them, or the user has different
access levels, this may not behave as intended.

Change-Id: I04a790d91b27b270cf1269c7bcb39c12d857ab32
2015-05-27 08:53:22 -07:00
James E. Blair cdd6bd2399 Add a key to return to the project list
To facilitate escaping from a deep stack of screens, add a key
to clear the history and return to the main project list.  Bind
this to meta-home by default.

Change-Id: Ic98e47d7a3a17271bf21230ec4bac184f691ced3
2015-04-08 15:35:51 -04:00
James E. Blair 35f5af52e7 Add held changes
This feature detects when Gertty is about to upload a review with
a positive vote after someone else has left a negative vote while
Gertty was offline.  This prevents a situation where it appears
a user is ignoring negative feedback from others.  The local user
is alerted and has the option to re-evaluate their review before
proceeding.

Change-Id: I838acaae6d12a2f8557bfd5a16837784c97c031a
2015-04-06 07:45:58 -07:00
James E. Blair a8422949ac Fix keymap substitution
We were only performing the '-' -> ' ' substitution needed for
keymap names when updating urwid commands.  Do that for all commands.

Change-Id: I2bae39523993da12848c818e6caef259d9f9fa4a
2015-03-05 07:59:05 -08:00
James E. Blair 5dffc27d16 Add support for starred changes
Change-Id: I2d57f0471f009e5e38d3652dbe3b0d9ac8854d7c
2015-02-13 07:04:18 -08:00
Bradley Jones 64cfe75767 Add ability to sort change list
Added key bindings to sort the change list by number (current default), and by
the time the change was last updated. Also added the ability to reverse the
sort, useful for showing the most recent changes at the top of the screen.

Doesn't depend on but sorting by updated column makes more sense with this
patchset: https://review.openstack.org/#/c/122176/

Change-Id: I4d0ee462c106e26857785c9b4e26cc17e906796a
2014-10-03 10:13:56 +01:00
James E. Blair e47cc2f607 Add submit functionality
Add a schema change to store whether the user can submit a revision.
Offer the submit button on that revision, as well as on the review
dialog if applicable.  Allow the submit action to be bound to
reviewkeys.  Also bind it to a key command.

Change-Id: I341663ac84d2ac09f9b1ef8c9e0dff45d2658e1d
2014-09-18 17:37:13 -07:00
James E. Blair 6a94738ebc Change help key
Gertty previously supported F1 and '?' as help keys, but '?' was
accidentally switched to 'h' when customizable keymaps were added.
Switch back to the old value.

Change-Id: Iaab801e4d53c59e6f45021ddfaa85bb740898ce8
2014-09-03 20:06:24 -07:00
James E. Blair 45471c9217 Clarify keymap entries for local git operations
To further distinguish the local vs remote cherry pick operation,
add 'local' to the name in the keymap.  Same for checkout (though
it has no remote).

Change-Id: Idcca8a9dbddfc571eda32634a7dc2a7bfb8a070a
2014-08-31 16:41:28 -07:00
James E. Blair b4043c176b Add support for editing commit message
Change-Id: Ice60e8ba0a08864ce2025af85ab1152aae9d88f8
2014-08-31 15:40:40 -07:00
James E. Blair de17a501e7 Add support for cherry-picking to a branch
Change-Id: I50fc591226f15505daf1bb5d954be4a9e00a39b5
2014-08-31 15:40:40 -07:00
James E. Blair 01b575d702 Add support for abandon/restore
Change-Id: I5f85220978c769c16405e188ae88822844a74d95
2014-08-31 15:40:40 -07:00
James E. Blair d714284593 Add support for rebasing a change
Change-Id: I1024341a00becdf317fb4f570696695ecdc92abf
2014-08-31 15:40:40 -07:00
James E. Blair add140034e Add support for editing topic
Change-Id: Ia6a748acfd1222e0874c4b5ce66df057b07c5b16
2014-08-31 15:40:40 -07:00
James E. Blair 6815021f3f Add a configurable keymap
Multiple keymaps may be added in either Gertty itself or in config
files, individual keys may be overriden in the standard map, and
the map can be selected via config file or command line option
just as palettes are.

Change the help text to be dynamically generated based on the
current keymap.

Change-Id: I5f8e63897fab3aa14493465256b5d4516cf47dcd
2014-08-29 15:43:25 -07:00