chishui / terminal-leetcode

Terminal-Leetcode is a terminal based leetcode website viewer.
MIT License
256 stars 27 forks source link

Open solutions instead of discussion page. #11

Closed jhshi closed 7 years ago

jhshi commented 7 years ago

Discussion pages are obsolete. Open solutions page instead. The URL pattern is <BASE_URL>/problems/<name>/#/solutions.

chishui commented 7 years ago

The new discussion url is like this: https://discuss.leetcode.com/category/9/two-sum. I think we should update the discussion url and add a new hotkey to solution.

jhshi commented 7 years ago

Agreed. But how to find out the category number of a problem?

chishui commented 7 years ago

I'll try to find a way.

jhshi commented 7 years ago

Meanwhile, should I go ahead and add the shortcut for solutions? What's a good shortcut? I'm thinking "o" given that "s" is already assigned to "submit". Or a capital "S"?

chishui commented 7 years ago

Sure, I'd prefer "S" as a shortcut.

jhshi commented 7 years ago

FYI, I left the "discussion" url alone so that you can work on it. This PR only contains the new "S" shortcut for solutions page.